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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user