Merge "Move always-on-top to the callers" into rvc-dev
This commit is contained in:
@@ -248,7 +248,6 @@ public class VirtualDisplayTaskEmbedder extends TaskEmbedder {
|
|||||||
options = super.prepareActivityOptions(options);
|
options = super.prepareActivityOptions(options);
|
||||||
options.setLaunchDisplayId(getDisplayId());
|
options.setLaunchDisplayId(getDisplayId());
|
||||||
options.setLaunchWindowingMode(WINDOWING_MODE_MULTI_WINDOW);
|
options.setLaunchWindowingMode(WINDOWING_MODE_MULTI_WINDOW);
|
||||||
options.setTaskAlwaysOnTop(true);
|
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -125,6 +125,7 @@ public class BubbleExpandedView extends LinearLayout implements View.OnClickList
|
|||||||
// Custom options so there is no activity transition animation
|
// Custom options so there is no activity transition animation
|
||||||
ActivityOptions options = ActivityOptions.makeCustomAnimation(getContext(),
|
ActivityOptions options = ActivityOptions.makeCustomAnimation(getContext(),
|
||||||
0 /* enterResId */, 0 /* exitResId */);
|
0 /* enterResId */, 0 /* exitResId */);
|
||||||
|
options.setTaskAlwaysOnTop(true);
|
||||||
// Post to keep the lifecycle normal
|
// Post to keep the lifecycle normal
|
||||||
post(() -> {
|
post(() -> {
|
||||||
if (DEBUG_BUBBLE_EXPANDED_VIEW) {
|
if (DEBUG_BUBBLE_EXPANDED_VIEW) {
|
||||||
|
|||||||
Reference in New Issue
Block a user