From c7dee917db6d6de4f7acee7666d692c8e35f098c Mon Sep 17 00:00:00 2001 From: Schneider Victor-tulias Date: Wed, 23 Mar 2022 11:08:08 -0700 Subject: [PATCH] Prevent removing the feedback view and callbacks when the user completes a gesture. Touching the screen immediately removed the feedback view and any callbacks attached. When the user successfully completed a gesture, one of those callbacks progresses the tutorial to its next step. Fixes: 226028473 Test: manual Change-Id: Ic432a5b73aa4410cb0188f50a57e3df637afb52d --- .../src/com/android/quickstep/interaction/TutorialFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/interaction/TutorialFragment.java b/quickstep/src/com/android/quickstep/interaction/TutorialFragment.java index d79b946146..7556bf4c29 100644 --- a/quickstep/src/com/android/quickstep/interaction/TutorialFragment.java +++ b/quickstep/src/com/android/quickstep/interaction/TutorialFragment.java @@ -325,7 +325,7 @@ abstract class TutorialFragment extends Fragment implements OnTouchListener { @Override public boolean onTouch(View view, MotionEvent motionEvent) { - if (mTutorialController != null) { + if (mTutorialController != null && !isGestureComplete()) { mTutorialController.hideFeedback(); } // Note: Using logical-or to ensure both functions get called.