Merge "Merge "IllegalArgumentException in MagnificationGestureHandler" am: 7aff46195e am: f124c72600 am: 99317517cb" into oc-mr1-dev-plus-aosp
This commit is contained in:
committed by
Android (Google) Code Review
commit
0583aa8749
@@ -690,6 +690,7 @@ class MagnificationGestureHandler implements EventStreamTransformation {
|
||||
}
|
||||
break;
|
||||
case MotionEvent.ACTION_UP: {
|
||||
mHandler.removeMessages(MESSAGE_ON_ACTION_TAP_AND_HOLD);
|
||||
if (!mMagnificationController.magnificationRegionContains(
|
||||
event.getX(), event.getY())) {
|
||||
transitionToDelegatingState(!mShortcutTriggered);
|
||||
@@ -703,7 +704,6 @@ class MagnificationGestureHandler implements EventStreamTransformation {
|
||||
if (mLastDownEvent == null) {
|
||||
return;
|
||||
}
|
||||
mHandler.removeMessages(MESSAGE_ON_ACTION_TAP_AND_HOLD);
|
||||
if (!GestureUtils.isTap(mLastDownEvent, event, mTapTimeSlop,
|
||||
mTapDistanceSlop, 0)) {
|
||||
transitionToDelegatingState(true);
|
||||
|
||||
Reference in New Issue
Block a user