diff options
| author | 2019-06-05 13:18:11 -0700 | |
|---|---|---|
| committer | 2019-06-05 13:18:11 -0700 | |
| commit | d498396892c919fefb6e0b996ada9b7d851b2133 (patch) | |
| tree | ec76ca70bdb98776a2a2d220a22ddf9fc8eb60a9 | |
| parent | 18097dcef8573621b43d1403b93a9b244e5ce5b3 (diff) | |
| parent | 15e2d7e50b9d0c10274775e70bf984e9a23add48 (diff) | |
Merge "Update KeyguardMonitor when UnlockMethod changes" into qt-dev
am: 15e2d7e50b
Change-Id: I524b8c1dcc44d075d2b0601b38d823cfa4cf90e5
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java index 9536be3d5900..8ad25bfc1f4d 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java @@ -1523,6 +1523,8 @@ public class StatusBar extends SystemUI implements DemoMode, @Override // UnlockMethodCache.OnUnlockMethodChangedListener public void onUnlockMethodStateChanged() { + // Unlock method state changed. Notify KeguardMonitor + updateKeyguardState(); logStateToEventlog(); } @@ -3419,9 +3421,7 @@ public class StatusBar extends SystemUI implements DemoMode, checkBarModes(); updateScrimController(); mPresenter.updateMediaMetaData(false, mState != StatusBarState.KEYGUARD); - mKeyguardMonitor.notifyKeyguardState(mStatusBarKeyguardViewManager.isShowing(), - mUnlockMethodCache.isMethodSecure(), - mStatusBarKeyguardViewManager.isOccluded()); + updateKeyguardState(); Trace.endSection(); } @@ -3460,6 +3460,12 @@ public class StatusBar extends SystemUI implements DemoMode, mStatusBarStateController.setIsDozing(dozing); } + private void updateKeyguardState() { + mKeyguardMonitor.notifyKeyguardState(mStatusBarKeyguardViewManager.isShowing(), + mUnlockMethodCache.isMethodSecure(), + mStatusBarKeyguardViewManager.isOccluded()); + } + public void onActivationReset() { mKeyguardIndicationController.hideTransientIndication(); } |