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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22127145

Change-Id: I8218f0aeda32450ce2c7af8a2e3b0aa06366b5de
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Shawn Lee
2023-03-20 16:55:25 +00:00
committed by Automerger Merge Worker

View File

@@ -3556,7 +3556,13 @@ public final class NotificationPanelViewController implements Dumpable {
: (mKeyguardStateController.canDismissLockScreen() : (mKeyguardStateController.canDismissLockScreen()
? UNLOCK : BOUNCER_UNLOCK); ? UNLOCK : BOUNCER_UNLOCK);
fling(vel, expand, isFalseTouch(x, y, interactionType)); // 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));
}
onTrackingStopped(expand); onTrackingStopped(expand);
mUpdateFlingOnLayout = expand && mPanelClosedOnDown && !mHasLayoutedSinceDown; mUpdateFlingOnLayout = expand && mPanelClosedOnDown && !mHasLayoutedSinceDown;
if (mUpdateFlingOnLayout) { if (mUpdateFlingOnLayout) {