[automerge] Prevent removing the feedback view and callbacks when the user completes a gesture. 2p: c7dee917db

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17353319

Change-Id: I93eff85f975432d03e32c1aec3f97211759bf8a5
This commit is contained in:
Schneider Victor-tulias
2022-03-23 18:15:18 +00:00
committed by Presubmit Automerger Backend
@@ -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.