mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 08:08:16 +02:00
Refactoring
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user