commit | 08ae664365748b2e78caf62ef063aa656aa90e96 | [log] [tgz] |
---|---|---|
author | Kevin Chyn <kchyn@google.com> | Wed Aug 30 19:02:43 2017 -0700 |
committer | Kevin Chyn <kchyn@google.com> | Wed Aug 30 19:16:33 2017 -0700 |
tree | be8296834e01be07cdaa7f3cb8ce1339d584aa01 | |
parent | 0ddaa63b6716d40b1d7988e9e224c31472a0d633 [diff] [blame] |
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
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 7e92edf..1411a54 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 void onStrongAuthStateChanged(int userId) { update(false /* updateAlways */); } + + @Override + public void onScreenTurnedOff() { + update(false /* updateAlways */); + } }; public boolean isTrustManaged() {