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

Commit 7d45a766 authored by Mady Mellor's avatar Mady Mellor Committed by Android (Google) Code Review
Browse files

Merge "Fix bubble reordering issue" into 24D1-dev

parents f5ee63e9 d1752daf
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -717,11 +717,6 @@ public class BubbleStackView extends FrameLayout

            // Hide the stack after a delay, if needed.
            updateTemporarilyInvisibleAnimation(false /* hideImmediately */);

            if (mShouldReorderBubblesAfterGestureCompletes) {
                mShouldReorderBubblesAfterGestureCompletes = false;
                updateBubbleOrderInternal(mBubbleData.getBubbles(), true);
            }
        }
    };

@@ -2732,6 +2727,12 @@ public class BubbleStackView extends FrameLayout
                ev.getAction() != MotionEvent.ACTION_UP
                        && ev.getAction() != MotionEvent.ACTION_CANCEL;

        // If there is a deferred reorder action, and the gesture is over, run it now.
        if (mShouldReorderBubblesAfterGestureCompletes && !mIsGestureInProgress) {
            mShouldReorderBubblesAfterGestureCompletes = false;
            updateBubbleOrderInternal(mBubbleData.getBubbles(), false);
        }

        return dispatched;
    }