Merge "Change remote copy intent behavior." into tm-dev am: 4d6f731761 am: 4b31535805
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18557688 Change-Id: I7745877a511887920d3599836e94997a026ede47 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -635,12 +635,13 @@ public class ClipboardOverlayController {
|
||||
}
|
||||
|
||||
private Intent getRemoteCopyIntent(ClipData clipData) {
|
||||
String remoteCopyPackage = mContext.getString(R.string.config_remoteCopyPackage);
|
||||
if (TextUtils.isEmpty(remoteCopyPackage)) {
|
||||
return null;
|
||||
}
|
||||
Intent nearbyIntent = new Intent(REMOTE_COPY_ACTION);
|
||||
nearbyIntent.setComponent(ComponentName.unflattenFromString(remoteCopyPackage));
|
||||
|
||||
String remoteCopyPackage = mContext.getString(R.string.config_remoteCopyPackage);
|
||||
if (!TextUtils.isEmpty(remoteCopyPackage)) {
|
||||
nearbyIntent.setComponent(ComponentName.unflattenFromString(remoteCopyPackage));
|
||||
}
|
||||
|
||||
nearbyIntent.setClipData(clipData);
|
||||
nearbyIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
|
||||
nearbyIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
||||
|
||||
Reference in New Issue
Block a user