Browse Source

Do not setTag to bottomTabs if testId is null (#4935)

Fixes #4812
Eli Sadaka 5 years ago
parent
commit
9126ced3bd

+ 1
- 1
lib/android/app/src/main/java/com/reactnativenavigation/presentation/BottomTabPresenter.java View File

@@ -54,7 +54,7 @@ public class BottomTabPresenter {
54 54
             bottomTabs.setTitleInactiveColor(i, tab.textColor.get(null));
55 55
             bottomTabs.setTitleInactiveTextSizeInSp(i, tab.fontSize.hasValue() ? Float.valueOf(tab.fontSize.get()) : null);
56 56
             bottomTabs.setTitleActiveTextSizeInSp(i, tab.selectedFontSize.hasValue() ? Float.valueOf(tab.selectedFontSize.get()) : null);
57
-            bottomTabs.setTag(i, tab.testId.get(null));
57
+            if (tab.testId.hasValue()) bottomTabs.setTag(i, tab.testId.get());
58 58
         }
59 59
     }
60 60