Merge "Prevent flings after motion gestures on fully expanded keyguard take 2" into tm-qpr-dev

This commit is contained in:
Shawn Lee
2023-03-20 16:53:40 +00:00
committed by Android (Google) Code Review

View File

@@ -3556,7 +3556,13 @@ public final class NotificationPanelViewController implements Dumpable {
: (mKeyguardStateController.canDismissLockScreen() : (mKeyguardStateController.canDismissLockScreen()
? UNLOCK : BOUNCER_UNLOCK); ? UNLOCK : BOUNCER_UNLOCK);
// don't fling while in keyguard to avoid jump in shade expand animation;
// touch has been intercepted already so flinging here is redundant
if (mBarState == KEYGUARD && mExpandedFraction >= 1.0) {
mShadeLog.d("NPVC endMotionEvent - skipping fling on keyguard");
} else {
fling(vel, expand, isFalseTouch(x, y, interactionType)); fling(vel, expand, isFalseTouch(x, y, interactionType));
}
onTrackingStopped(expand); onTrackingStopped(expand);
mUpdateFlingOnLayout = expand && mPanelClosedOnDown && !mHasLayoutedSinceDown; mUpdateFlingOnLayout = expand && mPanelClosedOnDown && !mHasLayoutedSinceDown;
if (mUpdateFlingOnLayout) { if (mUpdateFlingOnLayout) {