mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-29 19:17:24 +01:00
Simplified image item view
This commit is contained in:
@@ -64,7 +64,6 @@ public class AdapterImage extends RecyclerView.Adapter<AdapterImage.ViewHolder>
|
||||
private View view;
|
||||
private ImageView ivImage;
|
||||
private TextView tvCaption;
|
||||
private TextView tvType;
|
||||
|
||||
ViewHolder(View itemView) {
|
||||
super(itemView);
|
||||
@@ -72,7 +71,6 @@ public class AdapterImage extends RecyclerView.Adapter<AdapterImage.ViewHolder>
|
||||
view = itemView.findViewById(R.id.clItem);
|
||||
ivImage = itemView.findViewById(R.id.ivImage);
|
||||
tvCaption = itemView.findViewById(R.id.tvCaption);
|
||||
tvType = itemView.findViewById(R.id.tvType);
|
||||
}
|
||||
|
||||
private void wire() {
|
||||
@@ -98,7 +96,6 @@ public class AdapterImage extends RecyclerView.Adapter<AdapterImage.ViewHolder>
|
||||
tvCaption.setVisibility(TextUtils.isEmpty(attachment.name) ? View.GONE : View.VISIBLE);
|
||||
|
||||
tvCaption.setText(attachment.name);
|
||||
tvType.setText(attachment.type);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user