Fixed showing inline images

This commit is contained in:
M66B
2019-02-02 18:35:40 +00:00
parent 9a68d63ccd
commit d5758bf575

View File

@@ -154,8 +154,11 @@ public class HtmlHelper {
Drawable d = context.getResources().getDrawable(R.drawable.baseline_broken_image_24, context.getTheme());
d.setBounds(0, 0, px, px);
return d;
} else
return new BitmapDrawable(bm);
} else {
Drawable d = new BitmapDrawable(bm);
d.setBounds(0, 0, bm.getWidth(), bm.getHeight());
return d;
}
}
}