Loading java/com/android/dialer/main/impl/bottomnav/BottomNavItem.java +4 −5 Original line number Diff line number Diff line Loading @@ -62,11 +62,10 @@ final class BottomNavItem extends LinearLayout { super.setSelected(selected); int colorId = selected ? ThemeComponent.get(getContext()).theme().getColorPrimary() : ThemeComponent.get(getContext()).theme().getTextColorSecondary(); indicator.setBackgroundTintList(ColorStateList.valueOf(colorId)); // image.setImageTintList(ColorStateList.valueOf(colorId)); // text.setTextColor(colorId); ? getContext().getResources().getColor(R.color.dialer_theme_color) : getContext().getResources().getColor(R.color.foreground_color); // indicator.setBackgroundTintList(ColorStateList.valueOf(colorId)); indicator.setBackgroundColor(colorId); } void setup(@StringRes int stringRes, @DrawableRes int drawableRes) { Loading java/com/android/dialer/main/impl/bottomnav/res/layout/bottom_nav_item.xml +1 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ <View android:id="@+id/indicator" android:layout_width="match_parent" android:background="@color/foreground_color" android:layout_height="2dp" /> <FrameLayout Loading Loading
java/com/android/dialer/main/impl/bottomnav/BottomNavItem.java +4 −5 Original line number Diff line number Diff line Loading @@ -62,11 +62,10 @@ final class BottomNavItem extends LinearLayout { super.setSelected(selected); int colorId = selected ? ThemeComponent.get(getContext()).theme().getColorPrimary() : ThemeComponent.get(getContext()).theme().getTextColorSecondary(); indicator.setBackgroundTintList(ColorStateList.valueOf(colorId)); // image.setImageTintList(ColorStateList.valueOf(colorId)); // text.setTextColor(colorId); ? getContext().getResources().getColor(R.color.dialer_theme_color) : getContext().getResources().getColor(R.color.foreground_color); // indicator.setBackgroundTintList(ColorStateList.valueOf(colorId)); indicator.setBackgroundColor(colorId); } void setup(@StringRes int stringRes, @DrawableRes int drawableRes) { Loading
java/com/android/dialer/main/impl/bottomnav/res/layout/bottom_nav_item.xml +1 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ <View android:id="@+id/indicator" android:layout_width="match_parent" android:background="@color/foreground_color" android:layout_height="2dp" /> <FrameLayout Loading