mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Lint fix.
This commit is contained in:
parent
7e182ed662
commit
457a6a2dd0
@ -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…
Reference in New Issue
Block a user