mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 14:46:31 +02:00
Refactoring
This commit is contained in:
@@ -165,10 +165,7 @@ public class EntityAttachment {
|
||||
|
||||
Uri getUri(Context context) {
|
||||
File file = getFile(context);
|
||||
if (TextUtils.isEmpty(name))
|
||||
return FileProvider.getUriForFile(context, BuildConfig.APPLICATION_ID, file);
|
||||
else
|
||||
return FileProvider.getUriForFile(context, BuildConfig.APPLICATION_ID, file, name);
|
||||
return FileProviderEx.getUri(context, BuildConfig.APPLICATION_ID, file, name);
|
||||
}
|
||||
|
||||
File getFile(Context context) {
|
||||
|
||||
Reference in New Issue
Block a user