diff options
author | Fiona Campbell <flc@google.com> | 2021-08-25 16:39:17 +0000 |
---|---|---|
committer | Fiona Campbell <flc@google.com> | 2021-08-25 16:39:17 +0000 |
commit | 357286666194cc35002d1332cb603a3d1d18dfc2 (patch) | |
tree | f98d55a3c54d5361b88262ea992af569ce723b99 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 35062e84268124cb603a9967c099ec6446b2ea64 (diff) |
Fix DisplayDeviceConfig crash for values > 255
If screenBrightnessBacklight values in a config.xml file go above 255,
they leave a string of 1.0 values for every one that is above that. This
change ensures that this does not happen, and clamps the array so that
it contains a maximum of 1 value of 1.0.
Bug: 197491062
Test: manual - change config.xml config_screenBrightnessBacklight to go above 255
Change-Id: Id245ea902f265aa86a2caeff9d24a67fad4c37f7
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions