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

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

Merge "Fix an issue where bubbles didn't collapse onTaskMovedToFront" into tm-dev

parents 426cc578 ba395508
Loading
Loading
Loading
Loading
+9 −17
Original line number Diff line number Diff line
@@ -383,24 +383,16 @@ public class BubbleController {
        mTaskStackListener.addListener(new TaskStackListenerCallback() {
            @Override
            public void onTaskMovedToFront(int taskId) {
                if (mSysuiProxy == null) {
                    return;
                }

                mSysuiProxy.isNotificationShadeExpand((expand) -> {
                mMainExecutor.execute(() -> {
                    int expandedId = INVALID_TASK_ID;
                    if (mStackView != null && mStackView.getExpandedBubble() != null
                                && isStackExpanded() && !mStackView.isExpansionAnimating()
                                && !expand) {
                            && isStackExpanded() && !mStackView.isExpansionAnimating()) {
                        expandedId = mStackView.getExpandedBubble().getTaskId();
                    }

                    if (expandedId != INVALID_TASK_ID && expandedId != taskId) {
                        mBubbleData.setExpanded(false);
                    }
                });
                });
            }

            @Override