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

Commit 7c0e75e7 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Gah forgot this.

Change-Id: I8d2b31020ac309f17b967734e8ca97a36a5fae45
parent b057c3db
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))