Loading libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java +3 −0 Original line number Diff line number Diff line Loading @@ -1172,6 +1172,9 @@ public class BubbleController implements ConfigurationChangeListener, if (mStackView.isExpanded()) { ProtoLog.w(WM_SHELL_BUBBLES, "addToWindowManager - BubbleStackView is already expanded!"); if (Flags.fixBubbleStackViewExpandedWhenAdded()) { mStackView.overrideCollapsed(); } } mWindowManager.addView(mStackView, mWmLayoutParams); mStackView.setOnApplyWindowInsetsListener((view, windowInsets) -> { Loading libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java +8 −0 Original line number Diff line number Diff line Loading @@ -2542,6 +2542,14 @@ public class BubbleStackView extends FrameLayout } } /** * Fail-safe to set the expanded state to false. * See b/417447385. */ void overrideCollapsed() { mIsExpanded = false; } /** Snaps the stack to its expanded state without animation. */ void snapToExpanded() { setExpanded(/* shouldExpand= */ true, /* animateExpansion= */ false); Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java +3 −0 Original line number Diff line number Diff line Loading @@ -1172,6 +1172,9 @@ public class BubbleController implements ConfigurationChangeListener, if (mStackView.isExpanded()) { ProtoLog.w(WM_SHELL_BUBBLES, "addToWindowManager - BubbleStackView is already expanded!"); if (Flags.fixBubbleStackViewExpandedWhenAdded()) { mStackView.overrideCollapsed(); } } mWindowManager.addView(mStackView, mWmLayoutParams); mStackView.setOnApplyWindowInsetsListener((view, windowInsets) -> { Loading
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java +8 −0 Original line number Diff line number Diff line Loading @@ -2542,6 +2542,14 @@ public class BubbleStackView extends FrameLayout } } /** * Fail-safe to set the expanded state to false. * See b/417447385. */ void overrideCollapsed() { mIsExpanded = false; } /** Snaps the stack to its expanded state without animation. */ void snapToExpanded() { setExpanded(/* shouldExpand= */ true, /* animateExpansion= */ false); Loading