Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1baecb46 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't show the dismiss target if trying to drag the flyout."

parents 5795e55d 032f0520
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -97,10 +97,12 @@ class BubbleTouchHandler implements View.OnTouchListener {
            case MotionEvent.ACTION_DOWN:
                trackMovement(event);

                mTouchDown.set(rawX, rawY);

                if (!isFlyout) {
                    mDismissViewController.createDismissTarget();
                    mHandler.postDelayed(mShowDismissAffordance, SHOW_TARGET_DELAY);

                mTouchDown.set(rawX, rawY);
                }

                if (isStack) {
                    mViewPositionOnTouchDown.set(mStack.getStackPosition());
@@ -148,7 +150,7 @@ class BubbleTouchHandler implements View.OnTouchListener {
                    mController.dismissStack(BubbleController.DISMISS_USER_GESTURE);
                } else if (isFlyout) {
                    // TODO(b/129768381): Expand if tapped, dismiss if swiped away.
                    if (!mStack.isExpanded()) {
                    if (!mStack.isExpanded() && !mMovedEnough) {
                        mStack.expandStack();
                    }
                } else if (mMovedEnough) {