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

* commit '437db6106b20d5a81f12a93593b5f623b3159f19':
  [ActivityManager] Do not add service to reschedule after removing users.
This commit is contained in:
Olawale Ogunwale
2015-04-07 03:55:38 +00:00
committed by Android Git Automerger

View File

@@ -2228,7 +2228,7 @@ public final class ActiveServices {
EventLog.writeEvent(EventLogTags.AM_SERVICE_CRASHED_TOO_MUCH, EventLog.writeEvent(EventLogTags.AM_SERVICE_CRASHED_TOO_MUCH,
sr.userId, sr.crashCount, sr.shortName, app.pid); sr.userId, sr.crashCount, sr.shortName, app.pid);
bringDownServiceLocked(sr); bringDownServiceLocked(sr);
} else if (!allowRestart) { } else if (!allowRestart || !mAm.isUserRunningLocked(sr.userId, false)) {
bringDownServiceLocked(sr); bringDownServiceLocked(sr);
} else { } else {
boolean canceled = scheduleServiceRestartLocked(sr, true); boolean canceled = scheduleServiceRestartLocked(sr, true);