diff options
| -rw-r--r-- | services/core/java/com/android/server/am/ActivityStackSupervisor.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/am/ActivityStackSupervisor.java b/services/core/java/com/android/server/am/ActivityStackSupervisor.java index a0aeb6377aee..0a52ad3f5fbf 100644 --- a/services/core/java/com/android/server/am/ActivityStackSupervisor.java +++ b/services/core/java/com/android/server/am/ActivityStackSupervisor.java @@ -4489,9 +4489,12 @@ public class ActivityStackSupervisor extends ConfigurationContainer implements D "startActivityFromRecents: Task " + taskId + " not found."); } - // We always want to return to the home activity instead of the recents activity from - // whatever is started from the recents activity, so move the home stack forward. - moveHomeStackToFront("startActivityFromRecents"); + if (windowingMode != WINDOWING_MODE_SPLIT_SCREEN_PRIMARY) { + // We always want to return to the home activity instead of the recents activity + // from whatever is started from the recents activity, so move the home stack + // forward. + moveHomeStackToFront("startActivityFromRecents"); + } // If the user must confirm credentials (e.g. when first launching a work app and the // Work Challenge is present) let startActivityInPackage handle the intercepting. |