summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorFiona Campbell <flc@google.com>2021-06-28 12:23:38 +0100
committerFiona Campbell <flc@google.com>2021-07-05 18:35:29 +0100
commitc2f89436ea99b9fd3ce3e9a0d639e0ce7187f2c0 (patch)
tree06e093e2408315debcc7818b28e011ef98058524 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent49ffc85c56efba7faeac5cb4a786d47409bd19db (diff)
Ensure backlight doesn't change when rbc is toggled
This change fixes 2 issues. 1) the delay in autobrightness updating when rbc is toggled. calling updatepowerstate() when rbc changes state fixes this. 2) Originally, when rbc was toggled, due to the colour filter and therefore change to nits mapping, the backlight value would compensate for the changes, causing the backlight & slider to increase when extra dim was turned on, and vice versa. This is very unintuitive to the user. This change sets the old brightness value when rbc is toggled ensuring the screen does darken as the user would expect it to when they turn on this feature. Bug: 189819485 Test: atest FrameworksServicesTests:ReduceBrightColorsTintControllerTest Change-Id: I4ae0baca44757360e049ab71415b5a518f4999ba
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions