Merge "Calculate the launch bounds after layout" into udc-dev am: a034b4741d am: 6f268dbeec

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23007701

Change-Id: Ia4268b7aa6cabd3c9d2495430d2415446415f30f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Mady Mellor
2023-05-05 00:24:40 +00:00
committed by Automerger Merge Worker

View File

@@ -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(