From 9ab3805dcc49de62d93f8b976fc319ec16058f41 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 27 Jul 2024 08:19:21 +0200 Subject: [PATCH] Oops --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 70f19f668d..cf7f83d377 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -183,6 +183,7 @@ import org.openintents.openpgp.OpenPgpError; import org.openintents.openpgp.OpenPgpSignatureResult; import org.openintents.openpgp.util.OpenPgpApi; +import java.io.BufferedInputStream; import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileInputStream; @@ -9351,7 +9352,7 @@ public class FragmentMessages extends FragmentBase throw new IllegalArgumentException(context.getString(R.string.title_not_encrypted)); if (stripped) - in = new MessageHelper.StripStream((in)); + in = new MessageHelper.StripStream(new BufferedInputStream(in)); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); boolean autocrypt = prefs.getBoolean("autocrypt", true);