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

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

Merge "Fix missing incremental process starting position of LRU list"

parents 0c5a824b 282cf6ea
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2863,6 +2863,15 @@ public final class ProcessList {
                    pos--;
                }
                mLruProcesses.add(pos, app);
                if (pos == mLruProcessActivityStart) {
                    mLruProcessActivityStart++;
                }
                if (pos == mLruProcessServiceStart) {
                    // Unless {@code #hasService} is implemented, currently the starting position
                    // for activity and service are the same, so the incoming position may equal to
                    // the starting position of service.
                    mLruProcessServiceStart++;
                }
                // If this process is part of a group, need to pull up any other processes
                // in that group to be with it.
                int endIndex = pos - 1;