summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimationUtil.cpp
diff options
context:
space:
mode:
author Fiona Campbell <flc@google.com> 2023-05-12 17:19:15 +0000
committer Fiona Campbell <flc@google.com> 2023-05-13 09:45:47 +0000
commit0ce5c2dca6289692054b5412f84bce0a3acd9f1c (patch)
tree4aaa64dc12a1356c7a269d90826f22e4882003af /cmds/bootanimation/BootAnimationUtil.cpp
parentd02f519e8e59214d1094be459a9c1f54ec2d7989 (diff)
BrightnessChangeEvent works for increasing brightness
BrightnessChangeEvents were only sending when decreasing the brightness. Due to two issues: 1) brightness adjustment was being clamped to 0-1 instead of -1 to +1. (meaning buggy conditions were met when 0.0 == 0.0) 2) the brightness reason that was being read was the old reason, rather than the temporary (new) reason (meaning we were not sending change events correctly). Bug: 282005647 Test: adb shell dumpsys | grep BrightnessChangeEvent Change-Id: I2ada97469b68baee695e06db0c8a0cdbbab1027f
Diffstat (limited to 'cmds/bootanimation/BootAnimationUtil.cpp')
0 files changed, 0 insertions, 0 deletions