Code review fix.

This commit is contained in:
Onuray Sahin 2022-02-08 23:23:03 +03:00
parent 457a6a2dd0
commit f6a24e964e
1 changed files with 2 additions and 3 deletions

View File

@ -15,7 +15,6 @@
*/ */
package im.vector.app.core.ui.list package im.vector.app.core.ui.list
import android.content.res.ColorStateList
import android.graphics.Typeface import android.graphics.Typeface
import android.view.Gravity import android.view.Gravity
import androidx.annotation.ColorInt import androidx.annotation.ColorInt
@ -76,9 +75,9 @@ abstract class GenericButtonItem : VectorEpoxyModel<GenericButtonItem.Holder>()
holder.button.setTypeface(null, textStyle) holder.button.setTypeface(null, textStyle)
holder.button.rippleColor = if (highlight) { holder.button.rippleColor = if (highlight) {
ColorStateList.valueOf(ThemeUtils.getColor(holder.view.context, R.attr.colorSecondary)) ContextCompat.getColorStateList(holder.view.context, R.color.mtrl_btn_text_btn_ripple_color)
} else { } else {
ContextCompat.getColorStateList(holder.view.context, android.R.color.transparent) null
} }
holder.button.onClick(buttonClickAction) holder.button.onClick(buttonClickAction)