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:
@@ -215,9 +215,6 @@ public class BubbleExpandedView extends LinearLayout {
|
|||||||
ActivityOptions options = ActivityOptions.makeCustomAnimation(getContext(),
|
ActivityOptions options = ActivityOptions.makeCustomAnimation(getContext(),
|
||||||
0 /* enterResId */, 0 /* exitResId */);
|
0 /* enterResId */, 0 /* exitResId */);
|
||||||
|
|
||||||
Rect launchBounds = new Rect();
|
|
||||||
mTaskView.getBoundsOnScreen(launchBounds);
|
|
||||||
|
|
||||||
// TODO: I notice inconsistencies in lifecycle
|
// TODO: I notice inconsistencies in lifecycle
|
||||||
// Post to keep the lifecycle normal
|
// Post to keep the lifecycle normal
|
||||||
post(() -> {
|
post(() -> {
|
||||||
@@ -226,6 +223,9 @@ public class BubbleExpandedView extends LinearLayout {
|
|||||||
+ getBubbleKey());
|
+ getBubbleKey());
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
Rect launchBounds = new Rect();
|
||||||
|
mTaskView.getBoundsOnScreen(launchBounds);
|
||||||
|
|
||||||
options.setTaskAlwaysOnTop(true);
|
options.setTaskAlwaysOnTop(true);
|
||||||
options.setLaunchedFromBubble(true);
|
options.setLaunchedFromBubble(true);
|
||||||
options.setPendingIntentBackgroundActivityStartMode(
|
options.setPendingIntentBackgroundActivityStartMode(
|
||||||
|
|||||||
Reference in New Issue
Block a user