updateTextAndVisibility

fun TextView.updateTextAndVisibility(localizedText: Spanned? = null)

Displays localizedText if it is not null or empty, or hides the TextView.