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

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

Merge "Fix ClipboardService device lock check for cross profile" into oc-dev am: 8155446b

am: 8c8e5ce9

Change-Id: I0510692cbbb996b652cd6b0c2967d44c7e7b1fbf
parents 9bda8fdd 8c8e5ce9
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -435,9 +435,14 @@ public class ClipboardService extends SystemService {
    }

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

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