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

Commit 15e5d2a9 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by android-build-merger
Browse files

Ignore stopped/deleted users when filling cache. am: 38e0d0f5

am: 28f1ec46

Change-Id: I044791062f3aa95b9ee210dde1bdaf93b7848ace
parents b1577f22 28f1ec46
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -141,7 +141,12 @@ public class SearchManagerService extends ISearchManager.Stub {
    }

    private void onUnlockUser(int userId) {
        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) {