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

Commit e5c2f095 authored by Ats Jenk's avatar Ats Jenk Committed by Android (Google) Code Review
Browse files

Merge "Clean up bubbles expanded state in sysui state" into main

parents 6c2d683d a4ec5882
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -2508,6 +2508,16 @@ public class BubbleController implements ConfigurationChangeListener,
                mSysuiProxy.requestNotificationShadeTopUi(true, TAG);
            }

            if (Flags.enableBubbleSwipeUpCleanup() && !update.removedBubbles.isEmpty()
                    && !mBubbleData.hasBubbles()) {
                // This update removed all the bubbles. Send an update to SystemUI to mark the stack
                // collapsed. This should be sent by the UI classes (BubbleStackView or
                // BubbleBarLayerView), but if we fail to send this, home gesture stops working.
                // To avoid leaving the device in a bad state, add a failsafe call here to clean
                // up the state.
                mSysuiProxy.onStackExpandChanged(false);
            }

            mSysuiProxy.notifyInvalidateNotifications("BubbleData.Listener.applyUpdate");
            updateBubbleViews();