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

Commit ee818db6 authored by Makoto Onuki's avatar Makoto Onuki Committed by Android (Google) Code Review
Browse files

Merge "Make sure to update oom-adjustment when a service starts." into oc-dev

parents 09d8db03 0f42129f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1868,7 +1868,8 @@ public final class ActiveServices {
        final boolean newService = app.services.add(r);
        bumpServiceExecutingLocked(r, execInFg, "create");
        mAm.updateLruProcessLocked(app, false, null);
        updateServiceForegroundLocked(r.app, true);
        updateServiceForegroundLocked(r.app, /* oomAdj= */ false);
        mAm.updateOomAdjLocked();

        boolean created = false;
        try {