Merge "Fix not clearing split pair record after auto-enter pip" into udc-dev am: f64b22f77a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23159448 Change-Id: Ia75e23804321cfbef19fa132773853d3877a2512 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -23,6 +23,7 @@ import static android.app.ComponentOptions.KEY_PENDING_INTENT_BACKGROUND_ACTIVIT
|
|||||||
import static android.app.WindowConfiguration.ACTIVITY_TYPE_HOME;
|
import static android.app.WindowConfiguration.ACTIVITY_TYPE_HOME;
|
||||||
import static android.app.WindowConfiguration.ACTIVITY_TYPE_RECENTS;
|
import static android.app.WindowConfiguration.ACTIVITY_TYPE_RECENTS;
|
||||||
import static android.app.WindowConfiguration.WINDOWING_MODE_FULLSCREEN;
|
import static android.app.WindowConfiguration.WINDOWING_MODE_FULLSCREEN;
|
||||||
|
import static android.app.WindowConfiguration.WINDOWING_MODE_MULTI_WINDOW;
|
||||||
import static android.content.res.Configuration.SMALLEST_SCREEN_WIDTH_DP_UNDEFINED;
|
import static android.content.res.Configuration.SMALLEST_SCREEN_WIDTH_DP_UNDEFINED;
|
||||||
import static android.view.Display.DEFAULT_DISPLAY;
|
import static android.view.Display.DEFAULT_DISPLAY;
|
||||||
import static android.view.RemoteAnimationTarget.MODE_OPENING;
|
import static android.view.RemoteAnimationTarget.MODE_OPENING;
|
||||||
@@ -2377,6 +2378,10 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,
|
|||||||
+ " so make sure split-screen state is cleaned-up. "
|
+ " so make sure split-screen state is cleaned-up. "
|
||||||
+ "mainStageCount=%d sideStageCount=%d", mMainStage.getChildCount(),
|
+ "mainStageCount=%d sideStageCount=%d", mMainStage.getChildCount(),
|
||||||
mSideStage.getChildCount());
|
mSideStage.getChildCount());
|
||||||
|
if (triggerTask != null) {
|
||||||
|
mRecentTasks.ifPresent(
|
||||||
|
recentTasks -> recentTasks.removeSplitPair(triggerTask.taskId));
|
||||||
|
}
|
||||||
prepareExitSplitScreen(STAGE_TYPE_UNDEFINED, outWCT);
|
prepareExitSplitScreen(STAGE_TYPE_UNDEFINED, outWCT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2757,7 +2762,7 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,
|
|||||||
for (TransitionInfo.Change change : info.getChanges()) {
|
for (TransitionInfo.Change change : info.getChanges()) {
|
||||||
final ActivityManager.RunningTaskInfo taskInfo = change.getTaskInfo();
|
final ActivityManager.RunningTaskInfo taskInfo = change.getTaskInfo();
|
||||||
if (taskInfo != null
|
if (taskInfo != null
|
||||||
&& taskInfo.getWindowingMode() == WINDOWING_MODE_FULLSCREEN) {
|
&& taskInfo.getWindowingMode() != WINDOWING_MODE_MULTI_WINDOW) {
|
||||||
recentTasks.removeSplitPair(taskInfo.taskId);
|
recentTasks.removeSplitPair(taskInfo.taskId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user