Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22e32236 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

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
parent 830d4b42
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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