Refactoring

This commit is contained in:
M66B
2019-10-23 18:26:23 +02:00
parent 7f54059aab
commit 8e9d6da937
4 changed files with 76 additions and 78 deletions

View File

@@ -85,7 +85,7 @@ public class AdapterImage extends RecyclerView.Adapter<AdapterImage.ViewHolder>
private void bindTo(EntityAttachment attachment) {
if (attachment.available) {
Bitmap bm = Helper.decodeImage(attachment.getFile(context),
Bitmap bm = ImageHelper.decodeImage(attachment.getFile(context),
context.getResources().getDisplayMetrics().widthPixels);
if (bm == null)
ivImage.setImageResource(R.drawable.baseline_broken_image_24);