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