浏览代码

make dotIndicator to respect visible value (#5884)

In Android dotIndicator with initial value of visible: false is not respected and the dot appears in any case.

Co-authored-by: Guy Carmeli <guyca@users.noreply.github.com>
Ioannis Tsampoulatidis 5 年前
父节点
当前提交
d9bd03fea7
没有帐户链接到提交者的电子邮件

+ 1
- 0
lib/android/app/src/main/java/com/reactnativenavigation/presentation/BottomTabPresenter.java 查看文件

103
     }
103
     }
104
 
104
 
105
     private void applyDotIndicator(int tabIndex, DotIndicatorOptions dotIndicator) {
105
     private void applyDotIndicator(int tabIndex, DotIndicatorOptions dotIndicator) {
106
+        if(dotIndicator.visible.isFalse()) return;
106
         AHNotification.Builder builder = new AHNotification.Builder()
107
         AHNotification.Builder builder = new AHNotification.Builder()
107
                 .setText("")
108
                 .setText("")
108
                 .setBackgroundColor(dotIndicator.color.get(null))
109
                 .setBackgroundColor(dotIndicator.color.get(null))