Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 215bcb7e authored by Ricky Wai's avatar Ricky Wai Committed by Android (Google) Code Review
Browse files

Merge "Resume app switching if activity is start from recent"

parents f5093043 ec0569c1
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2570,6 +2570,11 @@ public class ActivityTaskSupervisor implements RecentTasks.Callbacks {
                mService.getActivityStartController().postStartActivityProcessingForLastStarter(
                        task.getTopNonFinishingActivity(), ActivityManager.START_TASK_TO_FRONT,
                        task.getRootTask());

                // As it doesn't go to ActivityStarter.executeRequest() path, we need to resume
                // app switching here also.
                mService.resumeAppSwitches();

                return ActivityManager.START_TASK_TO_FRONT;
            }
            callingPackage = task.mCallingPackage;