diff options
author | Josh Tsuji <tsuji@google.com> | 2021-07-22 15:12:10 -0400 |
---|---|---|
committer | Josh Tsuji <tsuji@google.com> | 2021-07-22 15:12:15 -0400 |
commit | 9ea5d02507b0ea9060642da81d971d118b579e1c (patch) | |
tree | 21c9ebc20c7880a5c2654826d0b44d5e747ab109 /native/android/performance_hint.cpp | |
parent | aef0db8f94ee998ad3c65451597cc1a1f7f7fad2 (diff) |
Reset to LiftReveal when going to sleep due to timing out, after a biometric auth.
This was causing the device to sleep using the CircleReveal, since it wasn't allowed to be reset to LiftReveal if we went to sleep from timeout (vs. a power button press, where it'd be reset to PowerButtonReveal).
If the device was subsequently woken up via a tap (not a power press or a lift), the CircleReveal remained as the reveal effect. The reveal amount for a CircleReveal is controlled by the biometric auth controller, but since we weren't actually waking up from a biometric auth, nothing happened and the reveal amount remained at 0f.
Since you can't "go to sleep from a biometric auth", this is a safe fix to make sure we don't leave the CircleReveal set as the reveal effect.
Fixes: 192912744
Test: wake the device via fingerprint while it's asleep, then let it time out and receive a HUN
Change-Id: I86f2ad17d175c40c159de9ed6372490fb6e276f0
Diffstat (limited to 'native/android/performance_hint.cpp')
0 files changed, 0 insertions, 0 deletions