mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-17 11:48:51 +03:00
Lint fix.
This commit is contained in:
parent
7e182ed662
commit
457a6a2dd0
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue