Merge "Don't delay child pressed state in freeform mode" into nyc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
671bc2052a
@@ -244,6 +244,11 @@ public class DecorCaptionView extends ViewGroup implements View.OnTouchListener,
|
||||
return mTouchDispatchList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldDelayChildPressedState() {
|
||||
return false;
|
||||
}
|
||||
|
||||
private boolean passedSlop(int x, int y) {
|
||||
return Math.abs(x - mTouchDownX) > mDragSlop || Math.abs(y - mTouchDownY) > mDragSlop;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user