1
0
Fork 0

For #10848 - Fixes tab tray colors

master
Jeff Boek 2020-05-29 18:31:25 -07:00
parent 91402f9b38
commit 19a709a04d
2 changed files with 5 additions and 5 deletions

View File

@ -145,15 +145,15 @@ class TabTrayViewHolder(itemView: View) : TabViewHolder(itemView) {
@VisibleForTesting
internal fun updateBackgroundColor(isSelected: Boolean) {
val itemBackground = if (isSelected) {
R.attr.tabTrayItemSelectedBackground
val color = if (isSelected) {
R.color.tab_tray_item_selected_background_normal_theme
} else {
R.attr.tabTrayItemBackground
R.color.tab_tray_item_background_normal_theme
}
itemView.setBackgroundColor(
ContextCompat.getColor(
itemView.context,
ThemeManager.resolveAttribute(itemBackground, itemView.context)
color
)
)
}

View File

@ -6,7 +6,7 @@
<shape>
<size android:height="1dp"/>
<solid android:color="?tabTrayItemDivider" />
<solid android:color="@color/tab_tray_item_divider_normal_theme" />
</shape>
</inset>