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

Commit 437db610 authored by Olawale Ogunwale's avatar Olawale Ogunwale Committed by Gerrit Code Review
Browse files

Merge "[ActivityManager] Do not add service to reschedule after removing users."

parents 7200f661 cd005ebf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2228,7 +2228,7 @@ public final class ActiveServices {
                EventLog.writeEvent(EventLogTags.AM_SERVICE_CRASHED_TOO_MUCH,
                        sr.userId, sr.crashCount, sr.shortName, app.pid);
                bringDownServiceLocked(sr);
            } else if (!allowRestart) {
            } else if (!allowRestart || !mAm.isUserRunningLocked(sr.userId, false)) {
                bringDownServiceLocked(sr);
            } else {
                boolean canceled = scheduleServiceRestartLocked(sr, true);