Increase bubble bar tap timeout
We were using only 100ms for bubble bar tap timeout. That made it difficult to tap to expand the bubble bar. The constant we were using, per javadoc, is for distinguishing scroll vs tap. Updating the timeout constant to long-press timeout value. If the tap is shorter than the long-press timeout (400ms by default), it is considered a tap. This should make it easier to tap the bar. Also fixing the long-press to drag timeout on the bubble bar. We were using only half of the long-press timeout constant. Bug: 385928447 Test: tap on bubble bar to expand it, long-press on bubble bar to move Flag: com.android.wm.shell.enable_bubble_bar Change-Id: I2df51a3caaa19ceb5b013d9377ebedd611ef84f3
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user