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

Commit f642c899 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android (Google) Code Review
Browse files

Merge "Gah forgot this."

parents ed2e45b3 7c0e75e7
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2314,8 +2314,12 @@ public final class ActivityManagerService extends ActivityManagerNative
    }
    final void addRecentTaskLocked(TaskRecord task) {
        // Remove any existing entries that are the same kind of task.
        int N = mRecentTasks.size();
        // Quick case: check if the top-most recent task is the same.
        if (N > 0 && mRecentTasks.get(0) == task) {
            return;
        }
        // Remove any existing entries that are the same kind of task.
        for (int i=0; i<N; i++) {
            TaskRecord tr = mRecentTasks.get(i);
            if ((task.affinity != null && task.affinity.equals(tr.affinity))