diff --git a/app/src/main/java/eu/faircode/email/AdapterAttachment.java b/app/src/main/java/eu/faircode/email/AdapterAttachment.java index 5835d7b840..907d999f6a 100644 --- a/app/src/main/java/eu/faircode/email/AdapterAttachment.java +++ b/app/src/main/java/eu/faircode/email/AdapterAttachment.java @@ -227,7 +227,7 @@ public class AdapterAttachment extends RecyclerView.Adapter // Build intent Intent intent = new Intent(Intent.ACTION_VIEW); - intent.setDataAndType(uri, attachment.type); + intent.setDataAndTypeAndNormalize(uri, attachment.type); intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); if (!TextUtils.isEmpty(attachment.name)) intent.putExtra(Intent.EXTRA_TITLE, attachment.name); diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 87c9794889..1d73a2dc0b 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -2417,7 +2417,7 @@ public class AdapterMessage extends RecyclerView.Adapter