fix bugs.

This commit is contained in:
2025-12-03 14:58:21 +08:00
parent 0f054e1b69
commit 50ef12ee3b
8 changed files with 137 additions and 119 deletions

View File

@@ -4,6 +4,7 @@ import android.content.Context
import android.content.res.TypedArray
import android.text.TextUtils
import android.util.AttributeSet
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import com.xscm.modulemain.R
@@ -67,6 +68,7 @@ class RoomMentorShipWheatView : BaseWheatView {
mCharmView.setBg(0)
when (bean.pit_number) {
"9" -> {
iv_tag_type?.visibility = View.VISIBLE
if (bean.user_id != "0") {
mCharmView.visibility = VISIBLE
mTvName.visibility = VISIBLE
@@ -86,10 +88,12 @@ class RoomMentorShipWheatView : BaseWheatView {
} else {
mCharmView.visibility = INVISIBLE
}
iv_tag_type?.visibility = View.GONE
}
else -> {
mCharmView.visibility = GONE
iv_tag_type?.visibility = View.GONE
}
}
@@ -100,7 +104,6 @@ class RoomMentorShipWheatView : BaseWheatView {
handleOffState(bean)
}
iv_tag_type!!.visibility = GONE
}
fun setSex(value: String?, format: Boolean) {