Debug: extra count

This commit is contained in:
M66B
2022-03-06 08:50:16 +01:00
parent 2f62075e10
commit e78419f6c4
7 changed files with 52 additions and 9 deletions

View File

@@ -62,6 +62,7 @@ public class AdapterNavUnified extends RecyclerView.Adapter<AdapterNavUnified.Vi
private View view;
private ImageView ivItem;
private ImageView ivBadge;
private TextView tvCount;
private TextView tvItem;
private TextView tvItemExtra;
private ImageView ivExtra;
@@ -73,6 +74,7 @@ public class AdapterNavUnified extends RecyclerView.Adapter<AdapterNavUnified.Vi
view = itemView.findViewById(R.id.clItem);
ivItem = itemView.findViewById(R.id.ivItem);
ivBadge = itemView.findViewById(R.id.ivBadge);
tvCount = itemView.findViewById(R.id.tvCount);
tvItem = itemView.findViewById(R.id.tvItem);
tvItemExtra = itemView.findViewById(R.id.tvItemExtra);
ivExtra = itemView.findViewById(R.id.ivExtra);
@@ -111,6 +113,7 @@ public class AdapterNavUnified extends RecyclerView.Adapter<AdapterNavUnified.Vi
count = folder.unseen;
ivBadge.setVisibility(count == 0 || expanded ? View.GONE : View.VISIBLE);
tvCount.setVisibility(View.GONE);
if (count == 0)
tvItem.setText(EntityFolder.localizeType(context, folder.type));