AppWidgetManager shouldn't use StorageManager.
It's probably looking to detect both STATE_RUNNING_UNLOCKING and STATE_RUNNING_UNLOCKED, so it should use isUserUnlockingOrUnlocked() instead of trying to peek at the low-level CE key status. Test: builds, boots Bug: 29534661 Change-Id: I6aca1721f88ced65abf3bb7cbab550c4dbe27fb7
This commit is contained in:
@@ -709,7 +709,7 @@ class AppWidgetServiceImpl extends IAppWidgetService.Stub implements WidgetBacku
|
||||
}
|
||||
|
||||
private boolean isUserRunningAndUnlocked(@UserIdInt int userId) {
|
||||
return mUserManager.isUserRunning(userId) && StorageManager.isUserKeyUnlocked(userId);
|
||||
return mUserManager.isUserUnlockingOrUnlocked(userId);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user