File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
src/core/tab-navigation-base/tab-navigation Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -990,13 +990,12 @@ export abstract class TabNavigation<T extends android.view.ViewGroup = any> exte
990
990
return ;
991
991
}
992
992
const itemColor = tabStripItem . _index === this . selectedIndex ? this . mSelectedItemColor : this . mUnSelectedItemColor ;
993
- if ( ! itemColor ) {
994
- return ;
995
- }
993
+ console . log ( '_setItemColor' , tabStripItem , itemColor ) ;
996
994
997
995
// set label color
998
- tabStripItem . nativeViewProtected . setTextColor ( itemColor . android ) ;
999
-
996
+ if ( itemColor ) {
997
+ tabStripItem . nativeViewProtected . setTextColor ( itemColor . android || null ) ;
998
+ }
1000
999
// set icon color
1001
1000
this . setIconColor ( tabStripItem , itemColor ) ;
1002
1001
}
@@ -1010,9 +1009,7 @@ export abstract class TabNavigation<T extends android.view.ViewGroup = any> exte
1010
1009
const drawableInfo = this . getIconInfo ( tabStripItem , color ) ;
1011
1010
const imgView = tabBarItem . getChildAt ( 0 ) as android . widget . ImageView ;
1012
1011
imgView . setImageDrawable ( drawableInfo . drawable ) ;
1013
- if ( color ) {
1014
- imgView . setColorFilter ( color . android ) ;
1015
- }
1012
+ imgView . setColorFilter ( color ?. android || null ) ;
1016
1013
}
1017
1014
1018
1015
public setTabBarItemColor ( tabStripItem : TabStripItem , value : number | Color ) : void {
You can’t perform that action at this time.
0 commit comments