Merge "Hide windows even when AOD is off"

This commit is contained in:
TreeHugger Robot
2018-07-03 12:35:46 +00:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 2 deletions

View File

@@ -2103,6 +2103,9 @@ public class KeyguardViewMediator extends SystemUI {
pw.print(" mDrawnCallback: "); pw.println(mDrawnCallback);
}
/**
* @param aodShowing true when AOD - or ambient mode - is showing.
*/
public void setAodShowing(boolean aodShowing) {
setShowingLocked(mShowing, aodShowing);
}

View File

@@ -4733,7 +4733,6 @@ public class StatusBar extends SystemUI implements DemoMode,
boolean dozing = mDozingRequested && mState == StatusBarState.KEYGUARD
|| mBiometricUnlockController.getMode()
== BiometricUnlockController.MODE_WAKE_AND_UNLOCK_PULSING;
final boolean alwaysOn = DozeParameters.getInstance(mContext).getAlwaysOn();
// 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 (mBiometricUnlockController.getMode() ==
@@ -4742,7 +4741,7 @@ public class StatusBar extends SystemUI implements DemoMode,
}
if (mDozing != dozing) {
mDozing = dozing;
mKeyguardViewMediator.setAodShowing(mDozing && alwaysOn);
mKeyguardViewMediator.setAodShowing(mDozing);
mStatusBarWindowManager.setDozing(mDozing);
mStatusBarKeyguardViewManager.setDozing(mDozing);
if (mAmbientIndicationContainer instanceof DozeReceiver) {