mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 03:19:24 +01:00
Show version number in about nav menu
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user