Merge changes from topic "presubmit-am-eb37b7cc8d444482bb756474cc862d14" into tm-mainline-prod
* changes:
[automerge] Prevent removing the feedback view and callbacks when the user completes a gesture. 2p: c7dee917db
Prevent removing the feedback view and callbacks when the user completes a gesture.
This commit is contained in:
committed by
Android (Google) Code Review
commit
e34ee57bf0
@@ -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