PixelXpert icon indicating copy to clipboard operation
PixelXpert copied to clipboard

Brightness slider on QS not animating correctly

Open RobMann94 opened this issue 2 years ago • 9 comments

On first pull down of quick settings, the brightness slider does not show animation when changing brightness. Once fully extended the QS panel, the slider works as expected.

Steps to reproduce the behavior:

  1. Open QS panel (one swipe)
  2. Adjust brightness slider

Brightness slider in previous versions showed animation when changing brightness.

  • Device: Google Pixel 6 Pro
  • OS: Android 12L (May release)
  • Module Version: 1.0.0-beta-03

RobMann94 avatar May 11 '22 21:05 RobMann94

As far as I remember it never animated correctly.

Getting a bit technical, the objects for animation are created in the system using dagger injection, and because of that I didn't have access to create one for QQS brightness

so the slider from QS is stolen: That means the animation does happen, but it's on main QS which we don't see

siavash79 avatar May 12 '22 13:05 siavash79

As far as I remember it never animated correctly.

Getting a bit technical, the objects for animation are created in the system using dagger injection, and because of that I didn't have access to create one for QQS brightness

so the slider from QS is stolen: That means the animation does happen, but it's on main QS which we don't see

Let me go back to the previous version I was on (1.0.0-canary-013) and check as now I'm doubting whether it did or not.

RobMann94 avatar May 12 '22 13:05 RobMann94

As far as I remember it never animated correctly.

Getting a bit technical, the objects for animation are created in the system using dagger injection, and because of that I didn't have access to create one for QQS brightness

so the slider from QS is stolen: That means the animation does happen, but it's on main QS which we don't see

Just reverted back to 1.0.0-canary-013 and the slider is animating correctly on the first pull down of the QS panel. I'm not sure which update since then broke it as I went straight to beta-03.

RobMann94 avatar May 13 '22 18:05 RobMann94

I just checked on pixel stock firmware, and here are the results:

  • the brightness bar works in all conditions whichever you chose
  • the only thing that fails to function is just the animation while you drag the brightness icon left abd right. And it is also bound to conditions:
  1. if you don't bring the brightness bar below qs toggles, the animation works flawless
  2. if you bring the brightness bar below qs toggles, the animations (and it is ONLY animations), don't work but the brightness bar itself and its function does again work flawlessly.
  3. if you bring the brightness bar above qs toggles and dont restart UI and phone, the animations still will be frozen.
  4. if you bring the brightness bar above qs toggles and restart UI but not restart phone, the animations still will be frozen on qs toggles but will work flawlessly on extended qs panel
  5. if you bring the brightness bar above qs toggles and restart phone, the animations will work flawlessly as it was working before.

I have already shared my screen records in the telegram channel of the MOD, you can find them with explanations here: https://t.me/AOSPMods_Support/3559

As they surpass the allowed file size I cannot share them here

The problem with your device could be because you are using a custom ROM rather than stock pixel firmware.

EleoXDA avatar May 14 '22 07:05 EleoXDA

As far as I remember it never animated correctly.

Getting a bit technical, the objects for animation are created in the system using dagger injection, and because of that I didn't have access to create one for QQS brightness

so the slider from QS is stolen: That means the animation does happen, but it's on main QS which we don't see

Just reverted back to 1.0.0-canary-013 and the slider is animating correctly on the first pull down of the QS panel. I'm not sure which update since then broke it as I went straight to beta-03.

So, in your case the brightness bar animations don't work at all with the new version? Doesn't matter whether it is above or below the QS panel? What is the android version, device name and ROM name that you are using?

EleoXDA avatar May 14 '22 07:05 EleoXDA

Your feedbacks are exactly in par with my results

As stated, I have big limitations when it comes to working with annotations in the code. Maybe there's a way that hasn't crossed my mind yet

Anyway, the important thing is that it works correctly. Though without proper animation

siavash79 avatar May 14 '22 08:05 siavash79

Your feedbacks are exactly in par with my results

As stated, I have big limitations when it comes to working with annotations in the code. Maybe there's a way that hasn't crossed my mind yet

Anyway, the important thing is that it works correctly. Though without proper animation

Completely understand. Didn't see it raised so thought I would raise it, not the end of the world if the bar doesn't animate and certainly doesn't affect the functionality of it.

For reference to your above comments, I'm running stock pixel firmware (May security update) as well and haven't used the below QS option once. Just updated back to the latest release and tested straight after the restart and does not animate. Tested below and above QS (restarting UI) and does not animate either.

Thanks for the mod anyway, definitely am not complaining considering I couldn't even create the mod in the first place!

Build Screenshot_20220514-090802.png

RobMann94 avatar May 14 '22 08:05 RobMann94

Your feedbacks are exactly in par with my results

As stated, I have big limitations when it comes to working with annotations in the code. Maybe there's a way that hasn't crossed my mind yet

Anyway, the important thing is that it works correctly. Though without proper animation

Completely understand. Didn't see it raised so thought I would raise it, not the end of the world if the bar doesn't animate and certainly doesn't affect the functionality of it.

For reference to your above comments, I'm running stock pixel firmware (May security update) as well and haven't used the below QS option once. Just updated back to the latest release and tested straight after the restart and does not animate. Tested below and above QS (restarting UI) and does not animate either.

Thanks for the mod anyway, definitely am not complaining considering I couldn't even create the mod in the first place!

Build Screenshot_20220514-090802.png

I am exactly on the same firmware as you on pixel 6. Could you provide your xposed and lsposed modules list and if also possible the lsposed log? I don't think there could be so many differences between two devices running exactly the same firmware Screenshot_20220514-111202.png

BTW the back arrow on your screenshot looks different. Are you sure you are running stock pixel firmware and not a custom ROM? Your statusbar icons are also different. Not the icons we see in AOSPMods tweaks

EleoXDA avatar May 14 '22 09:05 EleoXDA

That's what is confusing me as I am definitely running stock firmware on Pixel 6 Pro. The icons look different because I'm using 'Liv' icons style and 'Xperia' signal icons theme within AOSPMods.

Screenshot_20220514-101811

Screenshot_20220514-101949

LSPosed_2022-05-14T10_18_53.034.zip

RobMann94 avatar May 14 '22 09:05 RobMann94

Luckily, the animation is very smooth on Android 13

siavash79 avatar Aug 27 '22 16:08 siavash79

I'm having the exact same bug, running on LineageOS 19.1 (Android 12). Fresh install via Magisk and also tried a clean reinstall of the ROM without anything else, but results are the same.

Is this mod incompatible to LineageOS? Also why is the issue closed? Is the original problem considered solved?

BR

v1-valux avatar Aug 31 '22 21:08 v1-valux

Alright just I saw the note about the "broken" features with ROMs like LineageOS. Nevermind then :)

Good work altogether anyways.

I am curious about what could make the animation not work on a pixel phone and if there is an "easy" way to fix it.. If I make any progress I will post here..

You could leave this issue open for others to see and maybe give feedback.

cheers o/

v1-valux avatar Aug 31 '22 21:08 v1-valux

Alright just I saw the note about the "broken" features with ROMs like LineageOS. Nevermind then :)

Good work altogether anyways.

I am curious about what could make the animation not work on a pixel phone and if there is an "easy" way to fix it.. If I make any progress I will post here..

You could leave this issue open for others to see and maybe give feedback.

cheers o/

Brightness slider animates flawlessly on pixel stock firmware android 13. If there are issues on your custom ROM, please consider mentioning it to your custom ROM developer/maintainer

Maybe if you switch to Android 13 you will also see the bug resolved on your ROM. Since it no longer requires attention with coming android 13, there is no reason to focus on it

EleoXDA avatar Aug 31 '22 21:08 EleoXDA