Fix ObservableScrollView's cancel dispatch

Bug: 21239185
Change-Id: I8005556a2a6fcd8981e615a6f5537a1d7e9ce6a7
This commit is contained in:
Adrian Roos
2015-05-20 18:08:58 -07:00
parent 970be5313a
commit 5c82e340c3

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;