Browse Source

Fix tabIndicatorHeight (#512)

Guy Carmeli 8 years ago
parent
commit
1c128f10b8

+ 2
- 4
android/app/src/main/java/com/reactnativenavigation/params/parsers/StyleParamsParser.java View File

@@ -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
 }