|
|
@ -28,7 +28,6 @@ public class NavMenuItem {
|
|
|
|
private String subtitle = null;
|
|
|
|
private String subtitle = null;
|
|
|
|
private int extra_icon;
|
|
|
|
private int extra_icon;
|
|
|
|
private Integer count = null;
|
|
|
|
private Integer count = null;
|
|
|
|
private boolean extra_count = false;
|
|
|
|
|
|
|
|
private boolean warning = false;
|
|
|
|
private boolean warning = false;
|
|
|
|
private boolean separated = false;
|
|
|
|
private boolean separated = false;
|
|
|
|
private Runnable click;
|
|
|
|
private Runnable click;
|
|
|
@ -68,11 +67,6 @@ public class NavMenuItem {
|
|
|
|
this.count = count;
|
|
|
|
this.count = count;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
NavMenuItem setExtraCount(boolean value) {
|
|
|
|
|
|
|
|
this.extra_count = value;
|
|
|
|
|
|
|
|
return this;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NavMenuItem setExternal(boolean external) {
|
|
|
|
NavMenuItem setExternal(boolean external) {
|
|
|
|
setExtraIcon(external ? R.drawable.twotone_open_in_new_24 : 0);
|
|
|
|
setExtraIcon(external ? R.drawable.twotone_open_in_new_24 : 0);
|
|
|
|
return this;
|
|
|
|
return this;
|
|
|
@ -112,10 +106,6 @@ public class NavMenuItem {
|
|
|
|
return this.count;
|
|
|
|
return this.count;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
boolean getExtraCount() {
|
|
|
|
|
|
|
|
return this.extra_count;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
boolean isSeparated() {
|
|
|
|
boolean isSeparated() {
|
|
|
|
return this.separated;
|
|
|
|
return this.separated;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -153,7 +143,6 @@ public class NavMenuItem {
|
|
|
|
Objects.equals(this.subtitle, other.subtitle) &&
|
|
|
|
Objects.equals(this.subtitle, other.subtitle) &&
|
|
|
|
this.extra_icon == other.extra_icon &&
|
|
|
|
this.extra_icon == other.extra_icon &&
|
|
|
|
Objects.equals(this.count, other.count) &&
|
|
|
|
Objects.equals(this.count, other.count) &&
|
|
|
|
this.extra_count == other.extra_count &&
|
|
|
|
|
|
|
|
this.warning == other.warning &&
|
|
|
|
this.warning == other.warning &&
|
|
|
|
this.separated == other.separated);
|
|
|
|
this.separated == other.separated);
|
|
|
|
} else
|
|
|
|
} else
|
|
|
@ -162,6 +151,6 @@ public class NavMenuItem {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public int hashCode() {
|
|
|
|
public int hashCode() {
|
|
|
|
return Objects.hash(icon, color, title, subtitle, extra_icon, count, extra_count, warning, separated);
|
|
|
|
return Objects.hash(icon, color, title, subtitle, extra_icon, count, warning, separated);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|