Merge "Ignore ACTION_DOWN events when mTracking is true" into tm-qpr-dev

This commit is contained in:
Justin Weir
2023-02-02 18:24:02 +00:00
committed by Android (Google) Code Review

View File

@@ -6135,6 +6135,11 @@ public final class NotificationPanelViewController implements Dumpable {
switch (event.getActionMasked()) {
case MotionEvent.ACTION_DOWN:
if (mTracking) {
// TODO(b/247126247) fix underlying issue. Should be ACTION_POINTER_DOWN.
mShadeLog.d("Don't intercept down event while already tracking");
return false;
}
mCentralSurfaces.userActivity();
mAnimatingOnDown = mHeightAnimator != null && !mIsSpringBackAnimation;
mMinExpandHeight = 0.0f;
@@ -6222,6 +6227,11 @@ public final class NotificationPanelViewController implements Dumpable {
"onTouch: duplicate down event detected... ignoring");
return true;
}
if (mTracking) {
// TODO(b/247126247) fix underlying issue. Should be ACTION_POINTER_DOWN.
mShadeLog.d("Don't handle down event while already tracking");
return true;
}
mLastTouchDownTime = event.getDownTime();
}