diff --git a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleDragController.java b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleDragController.java index fd4cf0e98f..0abd88cfbc 100644 --- a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleDragController.java +++ b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleDragController.java @@ -299,7 +299,7 @@ public class BubbleDragController { private final PointF mTouchDownLocation = new PointF(); private final PointF mViewInitialPosition = new PointF(); private final VelocityTracker mVelocityTracker = VelocityTracker.obtain(); - private final long mPressToDragTimeout = ViewConfiguration.getLongPressTimeout() / 2; + private final long mPressToDragTimeout = ViewConfiguration.getLongPressTimeout(); private State mState = State.IDLE; private int mTouchSlop = -1; private BubbleDragAnimator mAnimator; diff --git a/quickstep/src/com/android/quickstep/inputconsumers/BubbleBarInputConsumer.java b/quickstep/src/com/android/quickstep/inputconsumers/BubbleBarInputConsumer.java index 6b61298eed..f3f73c0402 100644 --- a/quickstep/src/com/android/quickstep/inputconsumers/BubbleBarInputConsumer.java +++ b/quickstep/src/com/android/quickstep/inputconsumers/BubbleBarInputConsumer.java @@ -53,7 +53,7 @@ public class BubbleBarInputConsumer implements InputConsumer { private final int mTouchSlop; private final PointF mDownPos = new PointF(); private final PointF mLastPos = new PointF(); - private final long mTimeForTap; + private final long mTimeForLongPress; private int mActivePointerId = INVALID_POINTER_ID; public BubbleBarInputConsumer(Context context, BubbleControllers bubbleControllers, @@ -64,7 +64,7 @@ public class BubbleBarInputConsumer implements InputConsumer { mInputMonitorCompat = inputMonitorCompat; mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); - mTimeForTap = ViewConfiguration.getTapTimeout(); + mTimeForLongPress = ViewConfiguration.getLongPressTimeout(); } @Override @@ -110,7 +110,8 @@ public class BubbleBarInputConsumer implements InputConsumer { case MotionEvent.ACTION_UP: boolean swipeUpOnBubbleHandle = mBubbleBarSwipeController != null && mBubbleBarSwipeController.isSwipeGesture(); - boolean isWithinTapTime = ev.getEventTime() - ev.getDownTime() <= mTimeForTap; + // Anything less than a long-press is a tap + boolean isWithinTapTime = ev.getEventTime() - ev.getDownTime() <= mTimeForLongPress; if (isWithinTapTime && !swipeUpOnBubbleHandle && !mPassedTouchSlop && mStashedOrCollapsedOnDown) { // Taps on the handle / collapsed state should open the bar