添加混淆前
This commit is contained in:
@@ -85,19 +85,19 @@ class ChoosePlanAdapter(
|
||||
}
|
||||
|
||||
getTextView(R.id.tv_choose_plan_item_power).let {
|
||||
it.visibility = if (item.list.isNullOrEmpty()) View.GONE
|
||||
it.visibility = if (TextUtils.isEmpty(item.description)) View.GONE
|
||||
else {
|
||||
var str = getManyLanguageLimitDec(item.listTitleCode)
|
||||
if (TextUtils.isEmpty(str)) {
|
||||
for (i in 0 until item.list!!.size) {
|
||||
val packageDec = item.list!![i]
|
||||
str += "${i + 1}.${packageDec.title}"
|
||||
if (i != item.list!!.size - 1) {
|
||||
str += "\n"
|
||||
}
|
||||
}
|
||||
}
|
||||
it.text = str
|
||||
// var str = getManyLanguageLimitDec(item.listTitleCode)
|
||||
// if (TextUtils.isEmpty(str)) {
|
||||
// for (i in 0 until item.list!!.size) {
|
||||
// val packageDec = item.list!![i]
|
||||
// str += "${i + 1}.${packageDec.title}"
|
||||
// if (i != item.list!!.size - 1) {
|
||||
// str += "\n"
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
it.text = item.description
|
||||
View.VISIBLE
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,5 +28,6 @@ data class PackageBean(
|
||||
var bottomBgColor: String,
|
||||
var listTitleCode: Int,
|
||||
var planNameCode: Int,
|
||||
var description: String,
|
||||
var list: MutableList<PackageBenefitsBean>?
|
||||
) : Parcelable
|
||||
|
||||
Reference in New Issue
Block a user