From 5386d72456d0e80b5a14afe4abd92ab35a2cc3f4 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Thu, 11 May 2023 21:19:26 -0700 Subject: [PATCH] dl: allow sharing local video --- app/src/main/java/gallery/memories/service/DownloadService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/gallery/memories/service/DownloadService.java b/app/src/main/java/gallery/memories/service/DownloadService.java index 59151410..6149fc98 100644 --- a/app/src/main/java/gallery/memories/service/DownloadService.java +++ b/app/src/main/java/gallery/memories/service/DownloadService.java @@ -111,7 +111,7 @@ public class DownloadService { } public Boolean shareLocal(final long id) throws Exception { - Uri uri = ContentUris.withAppendedId(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, id); + Uri uri = ContentUris.withAppendedId(MediaStore.Files.getContentUri("external"), id); Intent intent = new Intent(Intent.ACTION_SEND); intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); intent.setType(mActivity.getContentResolver().getType(uri));