Loading packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java +4 −1 Original line number Diff line number Diff line Loading @@ -1307,7 +1307,10 @@ public class BubbleController implements ConfigurationController.ConfigurationLi for (Pair<Bubble, Integer> removed : removedBubbles) { final Bubble bubble = removed.first; @DismissReason final int reason = removed.second; if (mStackView != null) { mStackView.removeBubble(bubble); } // If the bubble is removed for user switching, leave the notification in place. if (reason == DISMISS_USER_CHANGED) { Loading packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java +15 −2 Original line number Diff line number Diff line Loading @@ -1581,7 +1581,13 @@ public class BubbleStackView extends FrameLayout if (DEBUG_BUBBLE_STACK_VIEW) { Log.d(TAG, "setSelectedBubble: " + bubbleToSelect); } if (mExpandedBubble != null && mExpandedBubble.equals(bubbleToSelect)) { // Ignore this new bubble only if it is the exact same bubble object. Otherwise, we'll want // to re-render it even if it has the same key (equals() returns true). If the currently // expanded bubble is removed and instantly re-added, we'll get back a new Bubble instance // with the same key (with newly inflated expanded views), and we need to render those new // views. if (mExpandedBubble == bubbleToSelect) { return; } if (bubbleToSelect == null || bubbleToSelect.getKey() != BubbleOverflow.KEY) { Loading Loading @@ -1661,6 +1667,13 @@ public class BubbleStackView extends FrameLayout if (DEBUG_BUBBLE_STACK_VIEW) { Log.d(TAG, "setExpanded: " + shouldExpand); } if (!shouldExpand) { // If we're collapsing, release the animating-out surface immediately since we have no // need for it, and this ensures it cannot remain visible as we collapse. releaseAnimatingOutBubbleBuffer(); } if (shouldExpand == mIsExpanded) { return; } Loading Loading @@ -2663,7 +2676,7 @@ public class BubbleStackView extends FrameLayout * expanded bubble. */ private void screenshotAnimatingOutBubbleIntoSurface(Consumer<Boolean> onComplete) { if (mExpandedBubble == null || mExpandedBubble.getExpandedView() == null) { if (!mIsExpanded || mExpandedBubble == null || mExpandedBubble.getExpandedView() == null) { // You can't animate null. onComplete.accept(false); return; Loading Loading
packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java +4 −1 Original line number Diff line number Diff line Loading @@ -1307,7 +1307,10 @@ public class BubbleController implements ConfigurationController.ConfigurationLi for (Pair<Bubble, Integer> removed : removedBubbles) { final Bubble bubble = removed.first; @DismissReason final int reason = removed.second; if (mStackView != null) { mStackView.removeBubble(bubble); } // If the bubble is removed for user switching, leave the notification in place. if (reason == DISMISS_USER_CHANGED) { Loading
packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java +15 −2 Original line number Diff line number Diff line Loading @@ -1581,7 +1581,13 @@ public class BubbleStackView extends FrameLayout if (DEBUG_BUBBLE_STACK_VIEW) { Log.d(TAG, "setSelectedBubble: " + bubbleToSelect); } if (mExpandedBubble != null && mExpandedBubble.equals(bubbleToSelect)) { // Ignore this new bubble only if it is the exact same bubble object. Otherwise, we'll want // to re-render it even if it has the same key (equals() returns true). If the currently // expanded bubble is removed and instantly re-added, we'll get back a new Bubble instance // with the same key (with newly inflated expanded views), and we need to render those new // views. if (mExpandedBubble == bubbleToSelect) { return; } if (bubbleToSelect == null || bubbleToSelect.getKey() != BubbleOverflow.KEY) { Loading Loading @@ -1661,6 +1667,13 @@ public class BubbleStackView extends FrameLayout if (DEBUG_BUBBLE_STACK_VIEW) { Log.d(TAG, "setExpanded: " + shouldExpand); } if (!shouldExpand) { // If we're collapsing, release the animating-out surface immediately since we have no // need for it, and this ensures it cannot remain visible as we collapse. releaseAnimatingOutBubbleBuffer(); } if (shouldExpand == mIsExpanded) { return; } Loading Loading @@ -2663,7 +2676,7 @@ public class BubbleStackView extends FrameLayout * expanded bubble. */ private void screenshotAnimatingOutBubbleIntoSurface(Consumer<Boolean> onComplete) { if (mExpandedBubble == null || mExpandedBubble.getExpandedView() == null) { if (!mIsExpanded || mExpandedBubble == null || mExpandedBubble.getExpandedView() == null) { // You can't animate null. onComplete.accept(false); return; Loading