Merge "Return from onUserUnlocked if user is no longer unlocked" into nyc-dev
am: 430df0fdb6
* commit '430df0fdb642847f1041756f94bf1483f7597f0c':
Return from onUserUnlocked if user is no longer unlocked
Change-Id: Iea5f3874a3992bfdf7d1e6b82f65856ed69d03fd
This commit is contained in:
@@ -2529,6 +2529,10 @@ class AppWidgetServiceImpl extends IAppWidgetService.Stub implements WidgetBacku
|
|||||||
if (isProfileWithLockedParent(userId)) {
|
if (isProfileWithLockedParent(userId)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!mUserManager.isUserUnlockingOrUnlocked(userId)) {
|
||||||
|
Slog.w(TAG, "User " + userId + " is no longer unlocked - exiting");
|
||||||
|
return;
|
||||||
|
}
|
||||||
synchronized (mLock) {
|
synchronized (mLock) {
|
||||||
ensureGroupStateLoadedLocked(userId);
|
ensureGroupStateLoadedLocked(userId);
|
||||||
reloadWidgetsMaskedStateForGroup(mSecurityPolicy.getGroupParent(userId));
|
reloadWidgetsMaskedStateForGroup(mSecurityPolicy.getGroupParent(userId));
|
||||||
|
|||||||
Reference in New Issue
Block a user