summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mady Mellor <madym@google.com> 2023-05-04 20:37:25 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-05-04 20:37:25 +0000
commita034b4741d654e81a4991368c13c1d0f7aaccfa7 (patch)
treec75e584ccaa09ccf7901b0a7f93d7f045a4edbf1
parenta80ba02eb8a58468c473c1518a048a8c79e4b6c5 (diff)
parent983cc2ecc82687bc9e17663d7efd7610cec441ee (diff)
Merge "Calculate the launch bounds after layout" into udc-dev
-rw-r--r--libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleExpandedView.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleExpandedView.java b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleExpandedView.java
index ba02faf94d69..e8014af463bd 100644
--- a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleExpandedView.java
+++ b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleExpandedView.java
@@ -215,9 +215,6 @@ public class BubbleExpandedView extends LinearLayout {
ActivityOptions options = ActivityOptions.makeCustomAnimation(getContext(),
0 /* enterResId */, 0 /* exitResId */);
- Rect launchBounds = new Rect();
- mTaskView.getBoundsOnScreen(launchBounds);
-
// TODO: I notice inconsistencies in lifecycle
// Post to keep the lifecycle normal
post(() -> {
@@ -226,6 +223,9 @@ public class BubbleExpandedView extends LinearLayout {
+ getBubbleKey());
}
try {
+ Rect launchBounds = new Rect();
+ mTaskView.getBoundsOnScreen(launchBounds);
+
options.setTaskAlwaysOnTop(true);
options.setLaunchedFromBubble(true);
options.setPendingIntentBackgroundActivityStartMode(