Fixed showing inline images

pull/147/head
M66B 7 years ago
parent 9a68d63ccd
commit d5758bf575

@ -154,8 +154,11 @@ public class HtmlHelper {
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());
d.setBounds(0, 0, px, px); d.setBounds(0, 0, px, px);
return d; return d;
} else } else {
return new BitmapDrawable(bm); Drawable d = new BitmapDrawable(bm);
d.setBounds(0, 0, bm.getWidth(), bm.getHeight());
return d;
}
} }
} }

Loading…
Cancel
Save