Merge "Account for last animated-to-sleep state when calculating nav visibility" into sc-qpr1-dev am: ac32f8b813
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15838491 Change-Id: I3c1c2e9d52dff6494be6040ff68f57d8f483d31b
This commit is contained in:
@@ -197,6 +197,7 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb
|
|||||||
private boolean mLastGesturalNav;
|
private boolean mLastGesturalNav;
|
||||||
private boolean mLastIsDocked;
|
private boolean mLastIsDocked;
|
||||||
private boolean mLastPulsing;
|
private boolean mLastPulsing;
|
||||||
|
private boolean mLastAnimatedToSleep;
|
||||||
private int mLastBiometricMode;
|
private int mLastBiometricMode;
|
||||||
private boolean mQsExpanded;
|
private boolean mQsExpanded;
|
||||||
private boolean mAnimatedToSleep;
|
private boolean mAnimatedToSleep;
|
||||||
@@ -1012,6 +1013,7 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb
|
|||||||
mLastBiometricMode = mBiometricUnlockController.getMode();
|
mLastBiometricMode = mBiometricUnlockController.getMode();
|
||||||
mLastGesturalNav = mGesturalNav;
|
mLastGesturalNav = mGesturalNav;
|
||||||
mLastIsDocked = mIsDocked;
|
mLastIsDocked = mIsDocked;
|
||||||
|
mLastAnimatedToSleep = mAnimatedToSleep;
|
||||||
mStatusBar.onKeyguardViewManagerStatesUpdated();
|
mStatusBar.onKeyguardViewManagerStatesUpdated();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1055,7 +1057,7 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb
|
|||||||
boolean hideWhileDozing = mLastDozing && mLastBiometricMode != MODE_WAKE_AND_UNLOCK_PULSING;
|
boolean hideWhileDozing = mLastDozing && mLastBiometricMode != MODE_WAKE_AND_UNLOCK_PULSING;
|
||||||
boolean keyguardWithGestureNav = (keyguardShowing && !mLastDozing
|
boolean keyguardWithGestureNav = (keyguardShowing && !mLastDozing
|
||||||
|| mLastPulsing && !mLastIsDocked) && mLastGesturalNav;
|
|| mLastPulsing && !mLastIsDocked) && mLastGesturalNav;
|
||||||
return (!keyguardShowing && !hideWhileDozing || mLastBouncerShowing
|
return (!mLastAnimatedToSleep && !keyguardShowing && !hideWhileDozing || mLastBouncerShowing
|
||||||
|| mLastRemoteInputActive || keyguardWithGestureNav
|
|| mLastRemoteInputActive || keyguardWithGestureNav
|
||||||
|| mLastGlobalActionsVisible);
|
|| mLastGlobalActionsVisible);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user