Fix several theming issues for Contact Selection.

This commit is contained in:
Alex Hart
2022-03-18 10:32:03 -03:00
parent 7e0cd99f48
commit e603391c35
4 changed files with 15 additions and 7 deletions

View File

@@ -171,7 +171,11 @@ object ContactSearchItems {
}
protected open fun bindSmsTagField(model: T) {
smsTag.visible = false
smsTag.visible = isSmsContact(model)
}
private fun isSmsContact(model: T): Boolean {
return (getRecipient(model).isForceSmsSelection || getRecipient(model).isUnregistered) && !getRecipient(model).isDistributionList
}
abstract fun isSelected(model: T): Boolean