Merge "TouchInteractionController: allow state transitions from STATE_DRAG."

This commit is contained in:
Ameer Armaly
2022-02-01 20:18:48 +00:00
committed by Android (Google) Code Review

View File

@@ -376,7 +376,7 @@ public final class TouchInteractionController {
throw new IllegalStateException(
"State transitions are not allowed without first adding a callback.");
}
if (mState != STATE_TOUCH_INTERACTING) {
if (mState != STATE_TOUCH_INTERACTING && mState != STATE_DRAGGING) {
throw new IllegalStateException(
"State transitions are not allowed in " + stateToString(mState));
}