Merge "Only bring side to top when split visible" into udc-dev
This commit is contained in:
@@ -2511,8 +2511,9 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,
|
|||||||
&& getStageType(dismissStages.valueAt(0)) == STAGE_TYPE_MAIN)
|
&& getStageType(dismissStages.valueAt(0)) == STAGE_TYPE_MAIN)
|
||||||
|| mMainStage.getChildCount() == 0 ? STAGE_TYPE_SIDE : STAGE_TYPE_MAIN;
|
|| mMainStage.getChildCount() == 0 ? STAGE_TYPE_SIDE : STAGE_TYPE_MAIN;
|
||||||
// If there is a fullscreen opening change, we should not bring stage to top.
|
// If there is a fullscreen opening change, we should not bring stage to top.
|
||||||
prepareExitSplitScreen(record.mContainShowFullscreenChange
|
prepareExitSplitScreen(
|
||||||
? STAGE_TYPE_UNDEFINED : dismissTop, wct);
|
!record.mContainShowFullscreenChange && isSplitScreenVisible()
|
||||||
|
? dismissTop : STAGE_TYPE_UNDEFINED, wct);
|
||||||
mSplitTransitions.startDismissTransition(wct, this, dismissTop,
|
mSplitTransitions.startDismissTransition(wct, this, dismissTop,
|
||||||
EXIT_REASON_APP_FINISHED);
|
EXIT_REASON_APP_FINISHED);
|
||||||
// This can happen in some pathological cases. For example:
|
// This can happen in some pathological cases. For example:
|
||||||
|
|||||||
Reference in New Issue
Block a user