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

Commit 80e74ab7 authored by Liran Binyamin's avatar Liran Binyamin Committed by Android (Google) Code Review
Browse files

Merge "Fix bubble reordering issue" into main

parents 67154dd7 1487b7cb
Loading
Loading
Loading
Loading
+6 −5
Original line number Original line Diff line number Diff line
@@ -717,11 +717,6 @@ public class BubbleStackView extends FrameLayout


            // Hide the stack after a delay, if needed.
            // Hide the stack after a delay, if needed.
            updateTemporarilyInvisibleAnimation(false /* hideImmediately */);
            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_UP
                        && ev.getAction() != MotionEvent.ACTION_CANCEL;
                        && 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;
        return dispatched;
    }
    }