Merge "Do stack collapse after stack reorder" into tm-dev am: 3ad3650181

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17699324

Change-Id: I712a8d95a0a15ba62d47bb0f546f73f8626ccff5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Sergey Serokurov
2022-04-12 15:52:36 +00:00
committed by Automerger Merge Worker

View File

@@ -1225,12 +1225,6 @@ public class BubbleController {
mOverflowListener.applyUpdate(update);
}
// Collapsing? Do this first before remaining steps.
if (update.expandedChanged && !update.expanded) {
mStackView.setExpanded(false);
mSysuiProxy.requestNotificationShadeTopUi(false, TAG);
}
// Do removals, if any.
ArrayList<Pair<Bubble, Integer>> removedBubbles =
new ArrayList<>(update.removedBubbles);
@@ -1307,6 +1301,11 @@ public class BubbleController {
mStackView.updateBubbleOrder(update.bubbles);
}
if (update.expandedChanged && !update.expanded) {
mStackView.setExpanded(false);
mSysuiProxy.requestNotificationShadeTopUi(false, TAG);
}
if (update.selectionChanged && mStackView != null) {
mStackView.setSelectedBubble(update.selectedBubble);
if (update.selectedBubble != null) {