소스 검색

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