Lint fix.

This commit is contained in:
Onuray Sahin 2022-02-07 17:44:27 +03:00
parent 7e182ed662
commit 457a6a2dd0

View File

@ -75,8 +75,11 @@ abstract class GenericButtonItem : VectorEpoxyModel<GenericButtonItem.Holder>()
val textStyle = if (bold) Typeface.BOLD else Typeface.NORMAL
holder.button.setTypeface(null, textStyle)
holder.button.rippleColor = if (highlight) ColorStateList.valueOf(ThemeUtils.getColor(holder.view.context, R.attr.colorSecondary)) else
holder.button.rippleColor = if (highlight) {
ColorStateList.valueOf(ThemeUtils.getColor(holder.view.context, R.attr.colorSecondary))
} else {
ContextCompat.getColorStateList(holder.view.context, android.R.color.transparent)
}
holder.button.onClick(buttonClickAction)
}