|
|
|
@ -4775,7 +4775,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
if (message.raw == null || !message.raw) {
|
|
|
|
|
properties.setValue("raw_send", message.id, true);
|
|
|
|
|
rawDownload(message);
|
|
|
|
|
} else {
|
|
|
|
|
} else
|
|
|
|
|
try {
|
|
|
|
|
File file = message.getRawFile(context);
|
|
|
|
|
Uri uri = FileProvider.getUriForFile(context, BuildConfig.APPLICATION_ID, file);
|
|
|
|
|
|
|
|
|
@ -4784,12 +4785,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
send.setType("message/rfc822");
|
|
|
|
|
send.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
context.startActivity(send);
|
|
|
|
|
} catch (ActivityNotFoundException ex) {
|
|
|
|
|
Log.w(ex);
|
|
|
|
|
ToastEx.makeText(context, context.getString(R.string.title_no_viewer, send), Toast.LENGTH_LONG).show();
|
|
|
|
|
}
|
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
|
// java.lang.IllegalArgumentException: Failed to resolve canonical path for ...
|
|
|
|
|
Log.unexpectedError(parentFragment.getParentFragmentManager(), ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|