mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-16 14:03:33 +02:00
Refactoring
This commit is contained in:
@@ -6359,7 +6359,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
|
||||
Helper.copy(source, target);
|
||||
|
||||
return FileProvider.getUriForFile(context, BuildConfig.APPLICATION_ID, target);
|
||||
return FileProviderEx.getUri(context, BuildConfig.APPLICATION_ID, target);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -7246,7 +7246,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
if (attachments != null)
|
||||
for (EntityAttachment attachment : attachments) {
|
||||
File file = attachment.getFile(context);
|
||||
Uri uri = FileProvider.getUriForFile(context, BuildConfig.APPLICATION_ID, file);
|
||||
Uri uri = FileProviderEx.getUri(context, BuildConfig.APPLICATION_ID, file, attachment.name);
|
||||
uris.add(uri);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user