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: I31f20d6e81d90489e17effefce0936e3e68df82d
This commit is contained in:
Fyodor Kupolov
2016-05-05 17:14:51 +00:00
committed by android-build-merger

View File

@@ -2529,6 +2529,10 @@ class AppWidgetServiceImpl extends IAppWidgetService.Stub implements WidgetBacku
if (isProfileWithLockedParent(userId)) {
return;
}
if (!mUserManager.isUserUnlockingOrUnlocked(userId)) {
Slog.w(TAG, "User " + userId + " is no longer unlocked - exiting");
return;
}
synchronized (mLock) {
ensureGroupStateLoadedLocked(userId);
reloadWidgetsMaskedStateForGroup(mSecurityPolicy.getGroupParent(userId));