Merge "Fix flash of ambient on fp unlock" into oc-dev

This commit is contained in:
TreeHugger Robot
2017-06-19 15:26:11 +00:00
committed by Android (Google) Code Review

View File

@@ -5050,6 +5050,12 @@ public class StatusBar extends SystemUI implements DemoMode,
mDozing = mDozingRequested && mState == StatusBarState.KEYGUARD
|| mFingerprintUnlockController.getMode()
== FingerprintUnlockController.MODE_WAKE_AND_UNLOCK_PULSING;
// When in wake-and-unlock we may not have received a change to mState
// but we still should not be dozing, manually set to false.
if (mFingerprintUnlockController.getMode() ==
FingerprintUnlockController.MODE_WAKE_AND_UNLOCK) {
mDozing = false;
}
mStatusBarWindowManager.setDozing(mDozing);
updateDozingState();
Trace.endSection();