Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 312579cb authored by Dan Gittik's avatar Dan Gittik Committed by Arne Coucheron
Browse files

Fixed auto-brightness first screen update.

When auto-brightness is enabled, it should update the screen as soon
as ALS data is available; however, if that data results in the same
screen brightness as before, this update is optimised away, even
though it should be applied (in case the actual screen brightness
did change, e.g. by a user who turned adaptive brightness off).

Test: Turn adaptive brightness off; set the screen brightness to 0;
      turn adaptive brightness on again (do so several times).
      Before the fix, it would often take a while for the screen
      to brighten (because similar ALS data results in the same
      screen brightness as before, an thus no update is issued).
      After the fix, it should brighten immediately.

Fixes: 111381286

(cherry picked from commit f387dd71)

Change-Id: If68765281587db887b81e2774c87e81547955b2b
CRs-Fixed: 2403457
parent ee636e65
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment