fix: NPE in Export Sticker
This commit is contained in:
parent
c484830b81
commit
3cee1d1aac
@ -98,7 +98,6 @@ class BottomBuilder(val ctx: Context, val needFocus: Boolean = true, val bgColor
|
||||
val checkBoxCell = TextCheckCell(ctx, 21, !switch)
|
||||
checkBoxCell.setBackgroundDrawable(Theme.getSelectorDrawable(false))
|
||||
checkBoxCell.minimumHeight = AndroidUtilities.dp(50F)
|
||||
rootView.addView(checkBoxCell, LayoutHelper.createLinear(-1, -2))
|
||||
|
||||
if (valueText == null) {
|
||||
checkBoxCell.setTextAndCheck(text, value, true)
|
||||
@ -106,6 +105,8 @@ class BottomBuilder(val ctx: Context, val needFocus: Boolean = true, val bgColor
|
||||
checkBoxCell.setTextAndValueAndCheck(text, valueText, value, true, true)
|
||||
}
|
||||
|
||||
rootView.addView(checkBoxCell, LayoutHelper.createLinear(-1, -2))
|
||||
|
||||
checkBoxCell.setOnClickListener {
|
||||
val target = !checkBoxCell.isChecked
|
||||
checkBoxCell.isChecked = target
|
||||
@ -119,7 +120,6 @@ class BottomBuilder(val ctx: Context, val needFocus: Boolean = true, val bgColor
|
||||
}
|
||||
|
||||
return checkBoxCell
|
||||
|
||||
}
|
||||
|
||||
@JvmOverloads
|
||||
|
Loading…
Reference in New Issue
Block a user