Merge "Set the host clipboard only for DEVICE_ID_DEFAULT device"
This commit is contained in:
committed by
Android (Google) Code Review
commit
dd49a94fe0
@@ -824,7 +824,9 @@ public class ClipboardService extends SystemService {
|
||||
@GuardedBy("mLock")
|
||||
private void setPrimaryClipInternalLocked(
|
||||
@Nullable ClipData clip, int uid, int deviceId, @Nullable String sourcePackage) {
|
||||
mEmulatorClipboardMonitor.accept(clip);
|
||||
if (deviceId == DEVICE_ID_DEFAULT) {
|
||||
mEmulatorClipboardMonitor.accept(clip);
|
||||
}
|
||||
|
||||
final int userId = UserHandle.getUserId(uid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user