Skip to content

[bugfix] Fix flashlight slider flicker at minimum brightness - #62

Open
varakumar01 wants to merge 1 commit into
AxionAOSP:lineage-23.2from
varakumar01:lineage-23.2
Open

[bugfix] Fix flashlight slider flicker at minimum brightness#62
varakumar01 wants to merge 1 commit into
AxionAOSP:lineage-23.2from
varakumar01:lineage-23.2

Conversation

@varakumar01

Copy link
Copy Markdown

Fixes the flicker/flash that happens when dragging the QS flashlight slider all the way down to the bottom.

What was wrong:
The fade-out animation always started from full brightness instead of the level the torch was actually at. So dragging down to a low level and letting go made the LED jump back up to full brightness for a moment before fading off. Holding your finger at the bottom made this repeat over and over, which looked like flickering.

Fix:

  • Fade-out now starts from wherever the torch currently is, not the saved default level.
  • Added a check so repeated "turn off" requests while the light is already fading out don't restart the fade.

… flashlight slider all the way down to the bottom

Signed-off-by: Varakumar <varakumar7000@gmail.com>
@varakumar01 varakumar01 changed the title Fix flashlight slider flicker at minimum brightness [bugfix] Fix flashlight slider flicker at minimum brightness Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant