|
@@ -50,6 +50,7 @@ public class StyleParamsParser {
|
50
|
50
|
getColor("bottomTabsSelectedButtonColor", getDefaultSelectedBottomTabsButtonColor());
|
51
|
51
|
|
52
|
52
|
result.navigationBarColor = getColor("navigationBarColor", getDefaultNavigationColor());
|
|
53
|
+ result.forceTitlesDisplay = getBoolean("forceTitlesDisplay", getDefaultForceTitlesDisplay());
|
53
|
54
|
|
54
|
55
|
return result;
|
55
|
56
|
}
|
|
@@ -75,6 +76,10 @@ public class StyleParamsParser {
|
75
|
76
|
return AppStyle.appStyle == null ? new StyleParams.Color() : AppStyle.appStyle.navigationBarColor;
|
76
|
77
|
}
|
77
|
78
|
|
|
79
|
+ private boolean getDefaultForceTitlesDisplay() {
|
|
80
|
+ return AppStyle.appStyle != null && AppStyle.appStyle.forceTitlesDisplay;
|
|
81
|
+ }
|
|
82
|
+
|
78
|
83
|
@Nullable
|
79
|
84
|
private StyleParams.Color getDefaultSelectedBottomTabsButtonColor() {
|
80
|
85
|
return AppStyle.appStyle == null ? new StyleParams.Color() : AppStyle.appStyle.selectedBottomTabsButtonColor;
|
|
@@ -138,8 +143,8 @@ public class StyleParamsParser {
|
138
|
143
|
return AppStyle.appStyle == null ? new StyleParams.Color() : AppStyle.appStyle.statusBarColor;
|
139
|
144
|
}
|
140
|
145
|
|
141
|
|
- private boolean getBoolean(String titleBarHidden, boolean defaultValue) {
|
142
|
|
- return params.containsKey(titleBarHidden) ? params.getBoolean(titleBarHidden) : defaultValue;
|
|
146
|
+ private boolean getBoolean(String key, boolean defaultValue) {
|
|
147
|
+ return params.containsKey(key) ? params.getBoolean(key) : defaultValue;
|
143
|
148
|
}
|
144
|
149
|
|
145
|
150
|
@NonNull
|