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

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

Fix ClipboardService device lock check for cross profile am: 6d79675e am:...

Fix ClipboardService device lock check for cross profile am: 6d79675e am: 095eda93 am: a4f6ca3e am: 85439e91
am: 17735f18

Change-Id: I71795f8f2f454956797ffaa78d22ca3573e5d626
parents 3be1269c 17735f18
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -315,8 +315,14 @@ public class ClipboardService extends IClipboard.Stub {
    }

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

    private final void checkUriOwnerLocked(Uri uri, int uid) {