|
@@ -709,14 +709,12 @@ public abstract class DrawerActivity extends ToolbarActivity
|
|
|
for (int i = 0; i < mNavigationView.getMenu().size(); i++) {
|
|
|
MenuItem menuItem = mNavigationView.getMenu().getItem(i);
|
|
|
if (menuItem.getIcon() != null) {
|
|
|
- // For the others item
|
|
|
- if (menuItem != currentItem) {
|
|
|
- ThemeUtils.tintDrawable(menuItem.getIcon(), drawerColor);
|
|
|
- ThemeUtils.tintMenuItemText(menuItem, drawerColor);
|
|
|
- } else {
|
|
|
- // For the selected item
|
|
|
+ if (menuItem == currentItem) {
|
|
|
ThemeUtils.tintDrawable(currentItem.getIcon(), activeColor);
|
|
|
ThemeUtils.tintMenuItemText(currentItem, activeColor);
|
|
|
+ } else {
|
|
|
+ ThemeUtils.tintDrawable(menuItem.getIcon(), drawerColor);
|
|
|
+ ThemeUtils.tintMenuItemText(menuItem, drawerColor);
|
|
|
}
|
|
|
}
|
|
|
}
|