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
This commit is contained in:
Schneider Victor-tulias
2022-03-23 11:08:08 -07:00
parent 68d5dd82db
commit c7dee917db
@@ -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.