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

Commit d8bef18e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Make a copy of base intent for task info"

parents 1320c7b7 c5a1bd42
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3215,7 +3215,9 @@ class Task extends WindowContainer<WindowContainer> {
        info.displayId = getDisplayId();
        info.isRunning = getTopNonFinishingActivity() != null;
        final Intent baseIntent = getBaseIntent();
        info.baseIntent = baseIntent == null ? new Intent() : baseIntent;
        // Make a copy of base intent because this is like a snapshot info.
        // Besides, {@link RecentTasks#getRecentTasksImpl} may modify it.
        info.baseIntent = baseIntent == null ? new Intent() : new Intent(baseIntent);
        info.baseActivity = mReuseActivitiesReport.base != null
                ? mReuseActivitiesReport.base.intent.getComponent()
                : null;