瀏覽代碼

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
No account linked to committer's email address

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

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