|
@@ -202,9 +202,7 @@ public class StyleParamsParser {
|
202
|
202
|
}
|
203
|
203
|
}
|
204
|
204
|
|
205
|
|
- private int getInt(String selectedTopTabIndicatorHeight, int defaultSelectedTopTabIndicatorHeight) {
|
206
|
|
- return params.containsKey(selectedTopTabIndicatorHeight) ?
|
207
|
|
- (int) params.getDouble(selectedTopTabIndicatorHeight) :
|
208
|
|
- defaultSelectedTopTabIndicatorHeight;
|
|
205
|
+ private int getInt(String key, int defaultValue) {
|
|
206
|
+ return params.containsKey(key) ? params.getInt(key) : defaultValue;
|
209
|
207
|
}
|
210
|
208
|
}
|