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

Commit 1dcb7ba7 authored by Eric Biggers's avatar Eric Biggers Committed by Automerger Merge Worker
Browse files

Merge "Use isCeStorageUnlocked() in AppDataRollbackHelper" into main am: e1b02f17 am: 51455685

parents bc876a99 51455685
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -266,10 +266,10 @@ public class AppDataRollbackHelper {
    }

    /**
     * @return {@code true} iff. {@code userId} is locked on an FBE device.
     * @return {@code true} iff the credential-encrypted storage for {@code userId} is locked.
     */
    @VisibleForTesting
    public boolean isUserCredentialLocked(int userId) {
        return StorageManager.isFileEncrypted() && !StorageManager.isUserKeyUnlocked(userId);
        return StorageManager.isFileEncrypted() && !StorageManager.isCeStorageUnlocked(userId);
    }
}