Merge "Don't reset default launcher if the user is not loaded"
This commit is contained in:
committed by
Android (Google) Code Review
commit
849332255e
@@ -537,7 +537,9 @@ public class ShortcutService extends IShortcutService.Stub {
|
||||
synchronized (mLock) {
|
||||
// Clear the launcher cache for this user. It will be set again next time the default
|
||||
// launcher is read from RoleManager.
|
||||
getUserShortcutsLocked(userId).setCachedLauncher(null);
|
||||
if (isUserLoadedLocked(userId)) {
|
||||
getUserShortcutsLocked(userId).setCachedLauncher(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user