Merge "Remove the validation check when enter split" into tm-qpr-dev
This commit is contained in:
@@ -1374,21 +1374,13 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (isSideStage && hasChildren && !mMainStage.isActive()) {
|
} else if (isSideStage && hasChildren && !mMainStage.isActive()) {
|
||||||
if (mFocusingTaskInfo != null && !isValidToEnterSplitScreen(mFocusingTaskInfo)) {
|
// TODO (b/238697912) : Add the validation to prevent entering non-recovered status
|
||||||
final WindowContainerTransaction wct = new WindowContainerTransaction();
|
final WindowContainerTransaction wct = new WindowContainerTransaction();
|
||||||
mSideStage.removeAllTasks(wct, true);
|
mSplitLayout.init();
|
||||||
wct.reorder(mRootTaskInfo.token, false /* onTop */);
|
prepareEnterSplitScreen(wct);
|
||||||
mTaskOrganizer.applyTransaction(wct);
|
mSyncQueue.queue(wct);
|
||||||
Slog.i(TAG, "cancel entering split screen, reason = "
|
mSyncQueue.runInSync(t ->
|
||||||
+ exitReasonToString(EXIT_REASON_APP_DOES_NOT_SUPPORT_MULTIWINDOW));
|
updateSurfaceBounds(mSplitLayout, t, false /* applyResizingOffset */));
|
||||||
} else {
|
|
||||||
final WindowContainerTransaction wct = new WindowContainerTransaction();
|
|
||||||
mSplitLayout.init();
|
|
||||||
prepareEnterSplitScreen(wct);
|
|
||||||
mSyncQueue.queue(wct);
|
|
||||||
mSyncQueue.runInSync(t ->
|
|
||||||
updateSurfaceBounds(mSplitLayout, t, false /* applyResizingOffset */));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (mMainStageListener.mHasChildren && mSideStageListener.mHasChildren) {
|
if (mMainStageListener.mHasChildren && mSideStageListener.mHasChildren) {
|
||||||
mShouldUpdateRecents = true;
|
mShouldUpdateRecents = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user