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

Commit b353fbcb authored by Siyamed Sinir's avatar Siyamed Sinir Committed by android-build-merger
Browse files

Merge "Use calling user ID when calling isDeviceLocked" into mnc-dev am:...

Merge "Use calling user ID when calling isDeviceLocked" into mnc-dev am: a0c253d0 am: c275b77b am: 1f853665 am: bc560108 am: eeb90235
am: eb863a6b

Change-Id: Iacb16edfcc470e3f030324ee75e6eb623ee2c91c
parents 396487f5 eb863a6b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -315,11 +315,12 @@ public class ClipboardService extends IClipboard.Stub {
    }

    private boolean isDeviceLocked() {
        int callingUserId = UserHandle.getCallingUserId();
        final long token = Binder.clearCallingIdentity();
        try {
            final KeyguardManager keyguardManager = mContext.getSystemService(
                    KeyguardManager.class);
            return keyguardManager != null && keyguardManager.isDeviceLocked();
            return keyguardManager != null && keyguardManager.isDeviceLocked(callingUserId);
        } finally {
            Binder.restoreCallingIdentity(token);
        }