Merge "Ignore stopped/deleted users when filling cache." into nyc-mr1-dev

This commit is contained in:
Jeff Sharkey
2016-07-26 19:36:37 +00:00
committed by Android (Google) Code Review

View File

@@ -141,7 +141,12 @@ public class SearchManagerService extends ISearchManager.Stub {
}
private void onUnlockUser(int userId) {
getSearchables(userId, true);
try {
getSearchables(userId, true);
} catch (IllegalStateException ignored) {
// We're just trying to warm a cache, so we don't mind if the user
// was stopped or destroyed before we got here.
}
}
private void onCleanupUser(int userId) {