Loading libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java +8 −1 Original line number Diff line number Diff line Loading @@ -2007,7 +2007,9 @@ public class BubbleController implements ConfigurationChangeListener, if (mStackView != null) { b.setSuppressFlyout(true); mStackView.addBubble(b); if (b.getKey().equals(mBubbleData.getSelectedBubbleKey())) { mStackView.setSelectedBubble(b); } } else { Log.w(TAG, "Tried to add a bubble to the stack but the stack is null"); } Loading @@ -2019,6 +2021,11 @@ public class BubbleController implements ConfigurationChangeListener, } }; } // TODO (b/380105874): Remove this after properly transitioning the expanded bubble from bar // to floating if (mStackView != null && mBubbleData.isExpanded()) { mBubbleData.collapseNoUpdate(); } for (int i = mBubbleData.getBubbles().size() - 1; i >= 0; i--) { Bubble bubble = mBubbleData.getBubbles().get(i); bubble.inflate(callback, Loading libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleData.java +5 −0 Original line number Diff line number Diff line Loading @@ -371,6 +371,11 @@ public class BubbleData { dispatchPendingChanges(); } /** Sets the expanded state to false without dispatching changes. */ public void collapseNoUpdate() { mExpanded = false; } /** * Sets the selected bubble and expands it, but doesn't dispatch changes * to {@link BubbleData.Listener}. This is used for updates coming from launcher whose views Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java +8 −1 Original line number Diff line number Diff line Loading @@ -2007,7 +2007,9 @@ public class BubbleController implements ConfigurationChangeListener, if (mStackView != null) { b.setSuppressFlyout(true); mStackView.addBubble(b); if (b.getKey().equals(mBubbleData.getSelectedBubbleKey())) { mStackView.setSelectedBubble(b); } } else { Log.w(TAG, "Tried to add a bubble to the stack but the stack is null"); } Loading @@ -2019,6 +2021,11 @@ public class BubbleController implements ConfigurationChangeListener, } }; } // TODO (b/380105874): Remove this after properly transitioning the expanded bubble from bar // to floating if (mStackView != null && mBubbleData.isExpanded()) { mBubbleData.collapseNoUpdate(); } for (int i = mBubbleData.getBubbles().size() - 1; i >= 0; i--) { Bubble bubble = mBubbleData.getBubbles().get(i); bubble.inflate(callback, Loading
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleData.java +5 −0 Original line number Diff line number Diff line Loading @@ -371,6 +371,11 @@ public class BubbleData { dispatchPendingChanges(); } /** Sets the expanded state to false without dispatching changes. */ public void collapseNoUpdate() { mExpanded = false; } /** * Sets the selected bubble and expands it, but doesn't dispatch changes * to {@link BubbleData.Listener}. This is used for updates coming from launcher whose views Loading