fix bugs.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user