Skip to content

Commit

Permalink
fix(android): keep Tab tintColor when changing icons (#14080)
Browse files Browse the repository at this point in the history
* fix(android): keep Tab tintColor when changing icons

* Update TiUIBottomNavigationTabGroup.java
  • Loading branch information
m1ga authored Aug 20, 2024
1 parent 017c052 commit 51be366
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ public void updateTabIcon(int index)

final Drawable drawable = TiUIHelper.getResourceDrawable(tabProxy.getProperty(TiC.PROPERTY_ICON));
this.mBottomNavigationView.getMenu().getItem(index).setIcon(drawable);
updateIconTint();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ public void updateTabIcon(int index)
TabLayout.Tab tab = this.mTabLayout.getTabAt(index);
tab.setIcon(TiUIHelper.getResourceDrawable(tabProxy.getProperty(TiC.PROPERTY_ICON)));
scaleIconToFit(tab);
updateIconTint();
}

@Override
Expand Down

0 comments on commit 51be366

Please sign in to comment.