Merge "Transition to clear state after gesture cancelation."

This commit is contained in:
Ameer Armaly
2020-11-12 15:31:55 +00:00
committed by Android (Google) Code Review

View File

@@ -207,6 +207,11 @@ public class TouchState {
case AccessibilityEvent.TYPE_GESTURE_DETECTION_START:
startGestureDetecting();
break;
case AccessibilityEvent.TYPE_GESTURE_DETECTION_END:
// Clear to make sure that we don't accidentally execute passthrough, and that we
// are ready for the next interaction.
clear();
break;
default:
break;
}