Merge "Don't delay child pressed state in freeform mode" into nyc-mr1-dev

This commit is contained in:
Andrii Kulian
2016-07-27 21:29:45 +00:00
committed by Android (Google) Code Review

View File

@@ -244,6 +244,11 @@ public class DecorCaptionView extends ViewGroup implements View.OnTouchListener,
return mTouchDispatchList; return mTouchDispatchList;
} }
@Override
public boolean shouldDelayChildPressedState() {
return false;
}
private boolean passedSlop(int x, int y) { private boolean passedSlop(int x, int y) {
return Math.abs(x - mTouchDownX) > mDragSlop || Math.abs(y - mTouchDownY) > mDragSlop; return Math.abs(x - mTouchDownX) > mDragSlop || Math.abs(y - mTouchDownY) > mDragSlop;
} }