|
@@ -16,6 +16,7 @@ public class StyleParamsParser {
|
16
|
16
|
public StyleParams parse() {
|
17
|
17
|
StyleParams result = new StyleParams();
|
18
|
18
|
if (params == null) {
|
|
19
|
+ result.titleBarDisabledButtonColor = getTitleBarDisabledButtonColor();
|
19
|
20
|
return result;
|
20
|
21
|
}
|
21
|
22
|
|
|
@@ -201,9 +202,7 @@ public class StyleParamsParser {
|
201
|
202
|
}
|
202
|
203
|
}
|
203
|
204
|
|
204
|
|
- private int getInt(String selectedTopTabIndicatorHeight, int defaultSelectedTopTabIndicatorHeight) {
|
205
|
|
- return params.containsKey(selectedTopTabIndicatorHeight) ?
|
206
|
|
- (int) params.getDouble(selectedTopTabIndicatorHeight) :
|
207
|
|
- defaultSelectedTopTabIndicatorHeight;
|
|
205
|
+ private int getInt(String key, int defaultValue) {
|
|
206
|
+ return params.containsKey(key) ? params.getInt(key) : defaultValue;
|
208
|
207
|
}
|
209
|
208
|
}
|