dl: allow sharing local video

pull/653/merge
Varun Patil 2023-05-11 21:19:26 -07:00
parent b0b0b74754
commit 5386d72456
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ public class DownloadService {
} }
public Boolean shareLocal(final long id) throws Exception { 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 intent = new Intent(Intent.ACTION_SEND);
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
intent.setType(mActivity.getContentResolver().getType(uri)); intent.setType(mActivity.getContentResolver().getType(uri));