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

Commit 5578b7c9 authored by Joshua Tsuji's avatar Joshua Tsuji
Browse files

Don't tell expanded controller about gestures unless we are expanded.

Test: manual
Fixes: 156412217
Change-Id: I183093a4a235365dd8636733f0f9ef778fa83af5
parent 55bf41c9
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -445,6 +445,10 @@ public class BubbleStackView extends FrameLayout
            final boolean clickedBubbleIsCurrentlyExpandedBubble =
                    clickedBubble.getKey().equals(mExpandedBubble.getKey());

            if (isExpanded()) {
                mExpandedAnimationController.onGestureFinished();
            }

            if (isExpanded() && !clickedBubbleIsCurrentlyExpandedBubble) {
                if (clickedBubble != mBubbleData.getSelectedBubble()) {
                    // Select the clicked bubble.
@@ -464,7 +468,6 @@ public class BubbleStackView extends FrameLayout
                    mBubbleData.setExpanded(!mBubbleData.isExpanded());
                }
            }
            mExpandedAnimationController.onGestureFinished();
        }
    };