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

Commit 5304e89d authored by Adrian Roos's avatar Adrian Roos Committed by Android (Google) Code Review
Browse files

Merge "KeyguardManager: Fix user resolution of isDeviceSecure/Locked"

parents 2536cc68 0b1853f9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -322,7 +322,7 @@ public class KeyguardManager {
     * password.
     */
    public boolean isDeviceLocked() {
        return isDeviceLocked(UserHandle.getCallingUserId());
        return isDeviceLocked(UserHandle.myUserId());
    }

    /**
@@ -347,7 +347,7 @@ public class KeyguardManager {
     * @return true if a PIN, pattern or password was set.
     */
    public boolean isDeviceSecure() {
        return isDeviceSecure(UserHandle.getCallingUserId());
        return isDeviceSecure(UserHandle.myUserId());
    }

    /**