From 9e7e83e82c99b0e1422e20a857a66ebee528ace2 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 7 Jan 2019 07:43:50 +0000 Subject: [PATCH] Simplification --- app/src/main/java/eu/faircode/email/HtmlHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index 70618b1f0a..a183d5c707 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -129,7 +129,7 @@ public class HtmlHelper { if (show) { // Embedded images if (embedded) { - String cid = "<" + source.split(":")[1] + ">"; + String cid = "<" + source.substring(4) + ">"; EntityAttachment attachment = DB.getInstance(context).attachment().getAttachment(id, cid); if (attachment == null) { Drawable d = context.getResources().getDrawable(R.drawable.baseline_broken_image_24, context.getTheme());