diff options
| -rw-r--r-- | libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java index ff4da853654d..65db69ad1904 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java @@ -1023,7 +1023,13 @@ public class BubbleStackView extends FrameLayout updateOverflowVisibility(); updatePointerPosition(false); requestUpdate(); - showManageMenu(mShowingManage); + if (mShowingManage) { + // if we're showing the menu after rotation, post it to the looper + // to make sure that the location of the menu button is correct + post(() -> showManageMenu(true)); + } else { + showManageMenu(false); + } PointF p = mPositioner.getExpandedBubbleXY(getBubbleIndex(mExpandedBubble), getState()); |