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

Commit a244bae4 authored by Jing Ji's avatar Jing Ji Committed by Android (Google) Code Review
Browse files

Merge "Skip stopping the BG services for the new processes" into udc-dev

parents cb97e4b2 6dc489c8
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1482,8 +1482,11 @@ public class OomAdjuster {
                        }
                        if (uidRec.isIdle() && !uidRec.isSetIdle()) {
                            uidChange |= UidRecord.CHANGE_IDLE;
                            if (uidRec.getSetProcState() != PROCESS_STATE_NONEXISTENT) {
                                // don't stop the bg services if it's just started.
                                becameIdle.add(uidRec);
                            }
                        }
                    } else {
                        if (uidRec.isIdle()) {
                            uidChange |= UidRecord.CHANGE_ACTIVE;