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

Commit 737e4604 authored by Makoto Onuki's avatar Makoto Onuki Committed by android-build-merger
Browse files

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

am: ee818db6

Change-Id: I99197f11f9cbab9b32b481fede9b747f9504b7fd
parents b29e0906 ee818db6
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 {