summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Josh Tsuji <tsuji@google.com> 2023-01-10 21:58:05 +0200
committer Josh Tsuji <tsuji@google.com> 2023-01-11 10:13:45 +0200
commite87a4dcd85dac5d4d4ca2aab63c66641d01b0f87 (patch)
treeae1ddf8bd819901b2481a1daa432671df9207cf1 /api/api.go
parentcc678f041641677e9d223d1292b88c9db8b464a2 (diff)
Explicitly re-show rather than reset keyguard if we're not interactive.
Showing the keyguard while not interactive should only happen during race conditions involving locking and unlocking simultaneously, where we want to make sure we end up locked. "Resetting" is a short-circuit to just reset the lockscreen views if we are asked to show while already showing. If we are asked to show keyguard while not interactive, even if we think we're already showing, we should not short-circuit and instead fully re-show the keyguard to ensure we end up in the correct state. Fixes: 265025247 Test: mash power/unlock repeatedly until hitting this case Test: atest KeyguardViewMediatorTest Change-Id: Ibb80fdd3d292c4cf05203ea89bfcc113481830d6
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions