Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7dee917 authored by Schneider Victor-tulias's avatar Schneider Victor-tulias
Browse files

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
parent 68d5dd82
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.