Hide tags field for entries without a tag

This commit is contained in:
RichyHBM 2017-11-13 19:02:00 +00:00
parent fbc38ecb9d
commit 5aa4027444

View file

@ -113,8 +113,13 @@ public class EntryViewHolder extends RecyclerView.ViewHolder
stringBuilder.append(", ");
}
}
this.tags.setText(stringBuilder.toString());
if (! tags.isEmpty()) {
this.tags.setVisibility(View.VISIBLE);
} else {
this.tags.setVisibility(View.GONE);
}
}
public void showCustomPeriod(int period) {