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

Commit dd49a94f authored by Roman Kiryanov's avatar Roman Kiryanov Committed by Android (Google) Code Review
Browse files

Merge "Set the host clipboard only for DEVICE_ID_DEFAULT device"

parents 12a5d4d1 22f4262f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -824,7 +824,9 @@ public class ClipboardService extends SystemService {
    @GuardedBy("mLock")
    private void setPrimaryClipInternalLocked(
            @Nullable ClipData clip, int uid, int deviceId, @Nullable String sourcePackage) {
        if (deviceId == DEVICE_ID_DEFAULT) {
            mEmulatorClipboardMonitor.accept(clip);
        }

        final int userId = UserHandle.getUserId(uid);