am 43293fa8: am 437db610: Merge "[ActivityManager] Do not add service to reschedule after removing users."
* commit '43293fa800d3c7d93ce99bb937ceb7496da85ffa': [ActivityManager] Do not add service to reschedule after removing users.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user