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

Commit 34201732 authored by Louis Chang's avatar Louis Chang Committed by Android (Google) Code Review
Browse files

Merge "Remove the empty Task when failed starting it from Recents" into main

parents 20c375b1 2895f104
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2846,6 +2846,11 @@ public class ActivityTaskSupervisor implements RecentTasks.Callbacks {
        } finally {
            SaferIntentUtils.DISABLE_ENFORCE_INTENTS_TO_MATCH_INTENT_FILTERS.set(false);
            synchronized (mService.mGlobalLock) {
                // Remove the empty task in case the activity was failed to be launched on the
                // task that was restored from Recents.
                if (!task.hasChild() && task.shouldRemoveSelfOnLastChildRemoval()) {
                    task.removeIfPossible("start-from-recents");
                }
                mService.continueWindowLayout();
            }
        }