Merge "Keyguard was hiding occluding activities" into tm-dev
This commit is contained in:
@@ -2921,8 +2921,9 @@ public class StatusBar extends CoreStartable implements
|
||||
// turned off fully.
|
||||
boolean keyguardForDozing = mDozeServiceHost.getDozingRequested()
|
||||
&& (!mDeviceInteractive || isGoingToSleep() && (isScreenFullyOff() || mIsKeyguard));
|
||||
boolean isWakingAndOccluded = isOccluded() && isWaking();
|
||||
boolean shouldBeKeyguard = (mStatusBarStateController.isKeyguardRequested()
|
||||
|| keyguardForDozing) && !wakeAndUnlocking;
|
||||
|| keyguardForDozing) && !wakeAndUnlocking && !isWakingAndOccluded;
|
||||
if (keyguardForDozing) {
|
||||
updatePanelExpansionForKeyguard();
|
||||
}
|
||||
@@ -3732,6 +3733,10 @@ public class StatusBar extends CoreStartable implements
|
||||
== WakefulnessLifecycle.WAKEFULNESS_GOING_TO_SLEEP;
|
||||
}
|
||||
|
||||
boolean isWaking() {
|
||||
return mWakefulnessLifecycle.getWakefulness() == WakefulnessLifecycle.WAKEFULNESS_WAKING;
|
||||
}
|
||||
|
||||
public void notifyBiometricAuthModeChanged() {
|
||||
mDozeServiceHost.updateDozing();
|
||||
updateScrimController();
|
||||
|
||||
Reference in New Issue
Block a user