From 2da5af065b9dbadb98e89b26dc468c8e6face85a Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 30 Nov 2017 23:51:56 +0100 Subject: [PATCH] fix #454, share multiple items properly, as images --- .../kotlin/com/simplemobiletools/gallery/extensions/activity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/activity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/activity.kt index 9910aa225..08b204cce 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/activity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/activity.kt @@ -43,7 +43,7 @@ fun Activity.shareMedium(medium: Medium) { } fun Activity.shareMedia(media: List) { - val uris = media.map { getFilePublicUri(File(it.path), BuildConfig.APPLICATION_ID) } as ArrayList + val uris = media.map { Uri.fromFile(File(it.path)) } as ArrayList shareUris(uris) }