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:
Jeff Sharkey
2017-02-24 10:21:55 -07:00
parent 830d4b422d
commit 22e32236ec

View File

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