mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 22:56:33 +02:00
Improved share error handling
This commit is contained in:
@@ -866,12 +866,8 @@ public class Helper {
|
||||
|
||||
static void share(Context context, File file, String type, String name) {
|
||||
// https://developer.android.com/reference/androidx/core/content/FileProvider
|
||||
try {
|
||||
Uri uri = FileProvider.getUriForFile(context, BuildConfig.APPLICATION_ID, file);
|
||||
share(context, uri, type, name);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
Uri uri = FileProvider.getUriForFile(context, BuildConfig.APPLICATION_ID, file);
|
||||
share(context, uri, type, name);
|
||||
}
|
||||
|
||||
static void share(Context context, Uri uri, String type, String name) {
|
||||
|
||||
Reference in New Issue
Block a user