summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Jeff DeCew <jeffdq@google.com> 2022-06-14 19:00:42 +0000
committer Jeff DeCew <jeffdq@google.com> 2022-06-14 19:03:11 +0000
commitef8d78874f344ca344ed4caa369f5a042e7fcc2c (patch)
tree9244eb76ca2e5479ae8df863cecd9b0b903f8cc9 /api/api.go
parent5ccdd5c1eb51cdb67de498001a1ffefae7e0bef3 (diff)
Fix notifications disappearing when shade fully expands.
The notifications would disappear with the shade fully expands because the shade calculation uses the expanded state if it's not 0 or 1, so when expansion becomes 1 the 'fraction' falls back to using the doze amount, which is 1, causing notifications to disappear. This was only happening because of a bug where the dozeAmount was left as 1.0 while the device was unlocked during the screen off animation. The core fix here is to clear the dozeAmount when cancelling screen off. Fixes: 234979264 Test: enable aod & rear/side fingerprint auth; go to launcher; tap power to turn screen off; unlock with finger during the animation; pull shade to see notifications Change-Id: If781da0cf941d3560be8bd6b27429e1d94448576
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions