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

Commit 389cf25c authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Avoid double OomAdjust update for start service." into main

parents fb5e3733 24a092b8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5453,7 +5453,7 @@ public final class ActiveServices {
        // Force an immediate oomAdjUpdate, so the client app could be in the correct process state
        // before doing any service related transactions
        mAm.enqueueOomAdjTargetLocked(app);
        mAm.updateOomAdjLocked(app, OOM_ADJ_REASON_START_SERVICE);
        mAm.updateOomAdjPendingTargetsLocked(OOM_ADJ_REASON_START_SERVICE);

        boolean created = false;
        try {