Fix ObservableScrollView's cancel dispatch
Bug: 21239185 Change-Id: I8005556a2a6fcd8981e615a6f5537a1d7e9ce6a7
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user