ソースを参照

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 個のファイルを変更した1 個の追加0 個の削除を含む
  1. 1
    0
      lib/android/app/src/main/java/com/reactnativenavigation/presentation/BottomTabPresenter.java

+ 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))