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

Commit e4491a09 authored by Vairavan Srinivasan's avatar Vairavan Srinivasan
Browse files

Avoid overhead of redundant task manipulation when it gains focus

Change-Id: I7a0a232c839ac6d3eec0b908cabb7c35b4a92965
parent f82fa927
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3277,11 +3277,11 @@ public class ActivityStack {

        // Shift all activities with this task up to the top
        // of the stack, keeping them in the same internal order.
        boolean first = true;
        while (pos >= 0) {
            ActivityRecord r = (ActivityRecord)mHistory.get(pos);
            if (localLOGV) Slog.v(
                TAG, "At " + pos + " ckp " + r.task + ": " + r);
            boolean first = true;
            if (r.task.taskId == task) {
                if (localLOGV) Slog.v(TAG, "Removing and adding at " + top);
                mHistory.remove(pos);