Show version number in about nav menu

This commit is contained in:
M66B
2021-02-20 14:41:06 +01:00
parent 07b68b66a7
commit d028cc09c9
3 changed files with 13 additions and 2 deletions

View File

@@ -22,6 +22,7 @@ package eu.faircode.email;
public class NavMenuItem {
private int icon;
private int title;
private String subtitle = null;
private Integer count = null;
private boolean external = false;
private boolean warning = false;
@@ -42,6 +43,11 @@ public class NavMenuItem {
this.longClick = longClick;
}
NavMenuItem setSubtitle(String subtitle) {
this.subtitle = subtitle;
return this;
}
void setCount(Integer count) {
if (count != null && count == 0)
count = null;
@@ -70,6 +76,10 @@ public class NavMenuItem {
return this.title;
}
String getSubtitle() {
return this.subtitle;
}
Integer getCount() {
return this.count;
}