|
|
|
|
@ -1,6 +1,5 @@ |
|
|
|
|
package net.pokeranalytics.android.ui.view.holder |
|
|
|
|
|
|
|
|
|
import android.content.res.ColorStateList |
|
|
|
|
import android.view.View |
|
|
|
|
import android.view.ViewGroup |
|
|
|
|
import androidx.appcompat.widget.AppCompatImageView |
|
|
|
|
@ -100,16 +99,16 @@ class RowViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView), Bindabl |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Title |
|
|
|
|
itemView.findViewById<AppCompatTextView?>(R.id.title)?.let { |
|
|
|
|
itemView.findViewById<AppCompatTextView?>(R.id.title)?.let { textView -> |
|
|
|
|
val title = row.resId?.let { _ -> |
|
|
|
|
row.localizedTitle(itemView.context) |
|
|
|
|
} ?: run { |
|
|
|
|
row.getDisplayName(itemView.context) |
|
|
|
|
} |
|
|
|
|
it.text = title |
|
|
|
|
textView.text = title |
|
|
|
|
|
|
|
|
|
adapter.dataSource.textColor(position, row)?.let { textColor -> |
|
|
|
|
it.setTextColor(itemView.context.getColor(textColor)) |
|
|
|
|
textView.setTextColor(itemView.context.getColor(textColor)) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// val color = if (adapter.dataSource.isEnabled(row, 0)) { |
|
|
|
|
|