Loading libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java +5 −2 Original line number Diff line number Diff line Loading @@ -628,8 +628,11 @@ public class BubbleController { mAddedToWindowManager = true; mBubbleData.getOverflow().initialize(this); mWindowManager.addView(mStackView, mWmLayoutParams); // Position info is dependent on us being attached to a window mStackView.setOnApplyWindowInsetsListener((view, windowInsets) -> { mBubblePositioner.update(); mStackView.onDisplaySizeChanged(); return windowInsets; }); } catch (IllegalStateException e) { // This means the stack has already been added. This shouldn't happen... e.printStackTrace(); Loading libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java +1 −0 Original line number Diff line number Diff line Loading @@ -1315,6 +1315,7 @@ public class BubbleStackView extends FrameLayout @Override protected void onAttachedToWindow() { super.onAttachedToWindow(); mPositioner.update(); getViewTreeObserver().addOnComputeInternalInsetsListener(this); getViewTreeObserver().addOnDrawListener(mSystemGestureExcludeUpdater); } Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java +5 −2 Original line number Diff line number Diff line Loading @@ -628,8 +628,11 @@ public class BubbleController { mAddedToWindowManager = true; mBubbleData.getOverflow().initialize(this); mWindowManager.addView(mStackView, mWmLayoutParams); // Position info is dependent on us being attached to a window mStackView.setOnApplyWindowInsetsListener((view, windowInsets) -> { mBubblePositioner.update(); mStackView.onDisplaySizeChanged(); return windowInsets; }); } catch (IllegalStateException e) { // This means the stack has already been added. This shouldn't happen... e.printStackTrace(); Loading
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java +1 −0 Original line number Diff line number Diff line Loading @@ -1315,6 +1315,7 @@ public class BubbleStackView extends FrameLayout @Override protected void onAttachedToWindow() { super.onAttachedToWindow(); mPositioner.update(); getViewTreeObserver().addOnComputeInternalInsetsListener(this); getViewTreeObserver().addOnDrawListener(mSystemGestureExcludeUpdater); } Loading