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

Commit 94efe917 authored by Olawale Ogunwale's avatar Olawale Ogunwale Committed by Android Git Automerger
Browse files

am bf39a6c6: am 43293fa8: am 437db610: Merge "[ActivityManager] Do not add...

am bf39a6c6: am 43293fa8: am 437db610: Merge "[ActivityManager] Do not add service to reschedule after removing users."

* commit 'bf39a6c6':
  [ActivityManager] Do not add service to reschedule after removing users.
parents 78485e0f bf39a6c6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2294,7 +2294,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);