Merge "Calculate the launch bounds after layout" into udc-dev
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user