mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 05:44:51 +02:00
Navigation menu item separators
This commit is contained in:
@@ -8,6 +8,7 @@ public class NavMenuItem {
|
||||
private int icon;
|
||||
private int title;
|
||||
private Integer count = null;
|
||||
private boolean separated = false;
|
||||
private Runnable click;
|
||||
private Runnable longClick;
|
||||
|
||||
@@ -30,6 +31,11 @@ public class NavMenuItem {
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
NavMenuItem setSeparated() {
|
||||
this.separated = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
int getIcon() {
|
||||
return this.icon;
|
||||
}
|
||||
@@ -42,6 +48,10 @@ public class NavMenuItem {
|
||||
return this.count;
|
||||
}
|
||||
|
||||
boolean isSeparated() {
|
||||
return this.separated;
|
||||
}
|
||||
|
||||
void onClick() {
|
||||
click.run();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user