Merge "Return from onUserUnlocked if user is no longer unlocked" into nyc-dev am: 430df0fdb6

am: d188a1693f

* commit 'd188a1693f317046317dde91a573799bf45f04ea':
  Return from onUserUnlocked if user is no longer unlocked

Change-Id: I998f4f974ab1225f7804cb6cce450dfe8332e6ab
This commit is contained in:
Fyodor Kupolov
2016-05-05 17:19:02 +00:00
committed by android-build-merger

View File

@@ -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));