summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mady Mellor <madym@google.com> 2022-04-13 23:07:49 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2022-04-13 23:07:49 +0000
commit669a1c26573ee2fbdacd40249985b74c344795b2 (patch)
tree8a82a6b717b7dae9ddbacee5da2966b3a7eb930a
parentd73ce7e27796c877577b3349df86386955c41f16 (diff)
parenta74ed727dfafd7e44447acac094bb40e7df13b3b (diff)
Merge "Fix bubble overflow position after rotating on larger screen" into tm-dev
-rw-r--r--libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java4
1 files changed, 3 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 f60b6599e350..322c0bf80816 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
@@ -913,8 +913,10 @@ public class BubbleStackView extends FrameLayout
afterExpandedViewAnimation();
showManageMenu(mShowingManage);
} /* after */);
+ PointF p = mPositioner.getExpandedBubbleXY(getBubbleIndex(mExpandedBubble),
+ getState());
final float translationY = mPositioner.getExpandedViewY(mExpandedBubble,
- getBubbleIndex(mExpandedBubble));
+ mPositioner.showBubblesVertically() ? p.y : p.x);
mExpandedViewContainer.setTranslationX(0f);
mExpandedViewContainer.setTranslationY(translationY);
mExpandedViewContainer.setAlpha(1f);