Merge "Fix ObservableScrollView's cancel dispatch" into mnc-dev

This commit is contained in:
Adrian Roos
2015-05-21 01:12:58 +00:00
committed by Android (Google) Code Review

View File

@@ -99,7 +99,7 @@ public class ObservableScrollView extends ScrollView {
} else if (!mTouchEnabled) {
MotionEvent cancel = MotionEvent.obtain(ev);
cancel.setAction(MotionEvent.ACTION_CANCEL);
super.dispatchTouchEvent(ev);
super.dispatchTouchEvent(cancel);
cancel.recycle();
mTouchCancelled = true;
return false;