Fixing overlay scroll state not getting reset properly when

scrolling is was cancelled

Bug: 30834333
Change-Id: I3605cd2dd939057905d297b5a25ce8669d578125
This commit is contained in:
Sunny Goyal
2016-08-12 12:46:01 -07:00
parent eea721266f
commit 4ff424abf9

View File

@@ -1800,6 +1800,7 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
case MotionEvent.ACTION_CANCEL:
if (mTouchState == TOUCH_STATE_SCROLLING) {
snapToDestination();
onScrollInteractionEnd();
}
resetTouchState();
break;