Fixed inline image view

This commit is contained in:
M66B 2019-07-26 19:17:24 +02:00
parent 2b8ec3d342
commit 828d86e86f
1 changed files with 8 additions and 5 deletions

View File

@ -402,11 +402,14 @@ public class HtmlHelper {
Drawable cached = getCachedImage(context, file);
if (cached != null || view == null) {
if (view == null) {
Drawable d = res.getDrawable(R.drawable.baseline_hourglass_empty_24, theme);
d.setBounds(0, 0, px, px);
return d;
} else
if (view == null)
if (cached == null) {
Drawable d = res.getDrawable(R.drawable.baseline_hourglass_empty_24, theme);
d.setBounds(0, 0, px, px);
return d;
} else
return cached;
else
fitDrawable(cached, view);
return cached;
}