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