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