From d2a6cae35bbf11cf378a6a669ec78eee6650da1a Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 12 May 2021 08:32:01 +0200 Subject: [PATCH] do not clip data at sharing file paths --- .../kotlin/com/simplemobiletools/commons/extensions/Activity.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Activity.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Activity.kt index 7aa08be93..cf9829f9a 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Activity.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Activity.kt @@ -208,7 +208,6 @@ fun Activity.sharePathIntent(path: String, applicationId: String) { Intent().apply { action = Intent.ACTION_SEND putExtra(EXTRA_STREAM, newUri) - clipData = ClipData.newRawUri(null, newUri) type = getUriMimeType(path, newUri) addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)