|
@@ -42,7 +42,7 @@ class TitleBarButton implements MenuItem.OnMenuItemClickListener {
|
42
|
42
|
}
|
43
|
43
|
|
44
|
44
|
private MenuItem createMenuItem(int index) {
|
45
|
|
- if (!buttonParams.font.hasFont() || TextUtils.isEmpty(buttonParams.label)) {
|
|
45
|
+ if (!buttonParams.hasFont() || TextUtils.isEmpty(buttonParams.label)) {
|
46
|
46
|
return menu.add(Menu.NONE, Menu.NONE, index, buttonParams.label);
|
47
|
47
|
}
|
48
|
48
|
TypefaceSpan span = new TypefaceSpan(buttonParams.font.get());
|
|
@@ -58,7 +58,7 @@ class TitleBarButton implements MenuItem.OnMenuItemClickListener {
|
58
|
58
|
}
|
59
|
59
|
|
60
|
60
|
private void setColor() {
|
61
|
|
- if (!hasColor()) {
|
|
61
|
+ if (!hasColor() || disableIconTint()) {
|
62
|
62
|
return;
|
63
|
63
|
}
|
64
|
64
|
|
|
@@ -84,7 +84,7 @@ class TitleBarButton implements MenuItem.OnMenuItemClickListener {
|
84
|
84
|
}
|
85
|
85
|
|
86
|
86
|
private void setFont() {
|
87
|
|
- if (!buttonParams.font.hasFont()) {
|
|
87
|
+ if (!buttonParams.hasFont()) {
|
88
|
88
|
return;
|
89
|
89
|
}
|
90
|
90
|
ArrayList<View> buttons = findActualTextViewInMenuByLabel();
|
|
@@ -106,7 +106,7 @@ class TitleBarButton implements MenuItem.OnMenuItemClickListener {
|
106
|
106
|
|
107
|
107
|
private void setTextFontForFoundButtonViews(ArrayList<View> buttons) {
|
108
|
108
|
for (View button : buttons) {
|
109
|
|
- if (buttonParams.font.hasFont()) {
|
|
109
|
+ if (buttonParams.hasFont()) {
|
110
|
110
|
((TextView) button).setTypeface(buttonParams.font.get());
|
111
|
111
|
}
|
112
|
112
|
}
|
|
@@ -120,6 +120,10 @@ class TitleBarButton implements MenuItem.OnMenuItemClickListener {
|
120
|
120
|
return buttonParams.color.hasColor();
|
121
|
121
|
}
|
122
|
122
|
|
|
123
|
+ private boolean disableIconTint() {
|
|
124
|
+ return buttonParams.disableIconTint;
|
|
125
|
+ }
|
|
126
|
+
|
123
|
127
|
@Override
|
124
|
128
|
public boolean onMenuItemClick(MenuItem item) {
|
125
|
129
|
NavigationApplication.instance.getEventEmitter().sendNavigatorEvent(buttonParams.eventId, navigatorEventId);
|