Refactoring

This commit is contained in:
M66B
2018-12-29 07:40:12 +00:00
parent 617c2cc18e
commit 0900aee1d3
6 changed files with 10 additions and 7 deletions

View File

@@ -109,8 +109,7 @@ public class HtmlHelper {
}
static Drawable decodeImage(String source, Context context, long id, boolean show) {
float scale = context.getResources().getDisplayMetrics().density;
int px = Math.round(48 * scale);
int px = Helper.dp2pixels(48, context);
if (TextUtils.isEmpty(source)) {
Drawable d = context.getResources().getDrawable(R.drawable.baseline_broken_image_24, context.getTheme());