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

Commit 0a36baae authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "Avoid overhead of redundant task manipulation when it gains focus" into gingerbread

parents 3a3f3aa7 e4491a09
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);