Hide tags field for entries without a tag
This commit is contained in:
parent
fbc38ecb9d
commit
5aa4027444
1 changed files with 6 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue