summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Fabian Kozynski <kozynski@google.com> 2019-06-05 13:25:11 -0700
committer android-build-merger <android-build-merger@google.com> 2019-06-05 13:25:11 -0700
commit92bee05891c0ef0c76bf2d313a4c97c58ec2d6ab (patch)
tree1f1fffb5455dfc60df332375c3482d2e66e40dd6
parent752efb1197ff8594504e2505d230890387bbfe96 (diff)
parente0047318d633ebbb51760d5d38de54febf8cc7c7 (diff)
Merge "Update KeyguardMonitor when UnlockMethod changes" into qt-dev am: 15e2d7e50b
am: e0047318d6 Change-Id: I95804c928e0baced524d1d8f75bed1fae68e7568
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java12
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();
}