Merge "Don't drop up or cancel touch events" into lmp-dev

This commit is contained in:
Adrian Roos
2014-09-02 21:35:59 +00:00
committed by Android (Google) Code Review

View File

@@ -87,7 +87,9 @@ public class ObservableScrollView extends ScrollView {
@Override
public boolean dispatchTouchEvent(MotionEvent ev) {
if (!mTouchEnabled) {
boolean isEndGuesture = (ev.getAction() == MotionEvent.ACTION_UP
|| ev.getAction() == MotionEvent.ACTION_CANCEL);
if (!mTouchEnabled && !isEndGuesture) {
return false;
}
return super.dispatchTouchEvent(ev);