pull/600/head
Jeff Boek 4 years ago
parent e18131f000
commit b778fbd78d

@ -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
) )
) )
} }

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

Loading…
Cancel
Save