diff options
author | Kevin Chyn <kchyn@google.com> | 2017-08-30 19:02:43 -0700 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2017-09-01 05:09:35 +0000 |
commit | ff4a5f3912bcd815205f7a176b2c9815b1c24679 (patch) | |
tree | 55532421d3772aa05711a3185322bc0984e7d802 | |
parent | 97bf71fcaf656e70b6b3f241976a9594cc1c3fa3 (diff) | |
download | base-ff4a5f3912bcd815205f7a176b2c9815b1c24679.tar.gz |
Update UnlockMethodCache when screen turns off
Fixes: 65212307
Test: 1) add a temporary log in update()
2) turn off screen, make sure update() is called, and
canSkipBouncer value is updated and correct
Change-Id: I576d2375d38e83f286ad1fc6aa25944326c3ef8f
(cherry picked from commit 08ae664365748b2e78caf62ef063aa656aa90e96)
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/UnlockMethodCache.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/UnlockMethodCache.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/UnlockMethodCache.java index 7e92edf76b74..1411a544c346 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/UnlockMethodCache.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/UnlockMethodCache.java @@ -154,6 +154,11 @@ public class UnlockMethodCache { public void onStrongAuthStateChanged(int userId) { update(false /* updateAlways */); } + + @Override + public void onScreenTurnedOff() { + update(false /* updateAlways */); + } }; public boolean isTrustManaged() { |