commit | 4384409dae023b4571842e19174c0d729767de6f | [log] [tgz] |
---|---|---|
author | Fiona Campbell <flc@google.com> | Thu Jun 03 15:54:12 2021 +0100 |
committer | Fiona Campbell <flc@google.com> | Mon Jun 14 12:28:00 2021 +0100 |
tree | c9800b21f532bcb0fcd34a418b45279dd14ef000 | |
parent | 8968116543614bebd3df00eb09b107938c0c2d0d [diff] |
Fix slider being at 0 on unlock This was happening due to a change that sourced the brightness value from the brightnessInfo object, which includes brightness state (invalid and -1/off) as well. This change ensures the brightnessInfo object will only store valid brightness values (ie, when the display is ON, and therefore the brightness is between min & max). Bug: 187776200 Test: manual Change-Id: I6b7077da1354f0b21c570f4e2283aa6830dbdb93