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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user