Fix flash of ambient on fp unlock

If we are in fp mode WAKE_AND_UNLOCK assume always set dozing
to false because we may not have received the keyguard callback
yet but we still should be hiding doze content.

Test: Add delay to exit animation callback and use fp unlock
Change-Id: I3d9256482cd5a35f6fa8864577b799432e2ab189
Fixes: 34916735
This commit is contained in:
Jason Monk
2017-06-15 14:21:34 -04:00
parent 0823c9ff5c
commit be9df03cbf

View File

@@ -5041,6 +5041,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();