Simplified image item view

This commit is contained in:
M66B
2019-10-27 16:52:40 +01:00
parent 0515c1b2cf
commit 5da41b3e53
2 changed files with 1 additions and 15 deletions

View File

@@ -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