Merge "Update KeyguardMonitor when UnlockMethod changes" into qt-dev am: 15e2d7e50b

am: e0047318d6

Change-Id: I95804c928e0baced524d1d8f75bed1fae68e7568
This commit is contained in:
Fabian Kozynski
2019-06-05 13:25:11 -07:00
committed by android-build-merger

View File

@@ -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();
}