Simplification

pull/147/head
M66B 6 years ago
parent 6d0a61f9fc
commit 9e7e83e82c

@ -129,7 +129,7 @@ public class HtmlHelper {
if (show) { if (show) {
// Embedded images // Embedded images
if (embedded) { if (embedded) {
String cid = "<" + source.split(":")[1] + ">"; String cid = "<" + source.substring(4) + ">";
EntityAttachment attachment = DB.getInstance(context).attachment().getAttachment(id, cid); EntityAttachment attachment = DB.getInstance(context).attachment().getAttachment(id, cid);
if (attachment == null) { if (attachment == null) {
Drawable d = context.getResources().getDrawable(R.drawable.baseline_broken_image_24, context.getTheme()); Drawable d = context.getResources().getDrawable(R.drawable.baseline_broken_image_24, context.getTheme());

Loading…
Cancel
Save