|
@@ -45,7 +45,7 @@ public class TitleBarButton implements MenuItem.OnMenuItemClickListener {
|
45
|
45
|
void addToMenu(Context context, final Menu menu) {
|
46
|
46
|
MenuItem menuItem = menu.add(button.title.get(""));
|
47
|
47
|
menuItem.setShowAsAction(button.showAsAction);
|
48
|
|
- menuItem.setEnabled(button.disabled.isFalseOrUndefined());
|
|
48
|
+ menuItem.setEnabled(button.enabled.isTrueOrUndefined());
|
49
|
49
|
menuItem.setOnMenuItemClickListener(this);
|
50
|
50
|
|
51
|
51
|
if (hasIcon()) {
|
|
@@ -108,11 +108,10 @@ public class TitleBarButton implements MenuItem.OnMenuItemClickListener {
|
108
|
108
|
}
|
109
|
109
|
|
110
|
110
|
private void setIconColor() {
|
111
|
|
- if (button.disabled.isFalseOrUndefined()) {
|
|
111
|
+ if (button.enabled.isTrueOrUndefined()) {
|
112
|
112
|
UiUtils.tintDrawable(icon, button.buttonColor);
|
113
|
113
|
return;
|
114
|
114
|
}
|
115
|
|
-
|
116
|
115
|
if (button.disableIconTint.isTrue()) {
|
117
|
116
|
UiUtils.tintDrawable(icon, button.buttonColor);
|
118
|
117
|
} else {
|