fix:【光环助手】游戏专题-右上角显示问题 https://jira.shanqu.cc/browse/GHZSCY-6773

This commit is contained in:
张晨
2024-10-10 16:21:44 +08:00
parent 2d30b97cca
commit 2d4920cfb0

View File

@ -123,8 +123,12 @@ abstract class BaseCustomViewHolder(
_title.name = subject.name
tvTitle.text = subject.name ?: ""
}
if (_title.rightText != subject.home) {
_title.rightText = subject.home
val home = subject.home ?: ""
val homeText = subject.homeText ?: ""
if (_title.rightHome != home || _title.rightText != homeText) {
_title.rightHome = home
_title.rightText = homeText
fun getHomeText(defaultResId: Int): String =
if (subject.homeText.isNullOrBlank()) {
defaultResId.toResString()
@ -363,6 +367,7 @@ abstract class BaseCustomViewHolder(
data class TitleData(
var name: String? = null,
var rightHome: String? = null,
var rightText: String? = null,
var isRefresh: Boolean = false,
var icon: String? = null,