Commit ae47679
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 f387dd7)
CRs-Fixed: 2403457
Change-Id: I8f0c8a9bf3d2dd7ceb520a95097eb4485f27196c1 parent 8291675 commit ae47679
File tree
1 file changed
+1
-0
lines changed- services/core/java/com/android/server/display
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
| 409 | + | |
409 | 410 | | |
410 | 411 | | |
411 | 412 | | |
| |||
0 commit comments