Skip to content

Commit

Permalink
Invert condition and use isBlank instead
Browse files Browse the repository at this point in the history
  • Loading branch information
tevincent committed Mar 12, 2024
1 parent 8ae7a4a commit 8e40142
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@ class RecipientFieldView @JvmOverloads constructor(
private fun setTextInputListeners() = with(binding.textInput) {

fun performContactSearch(text: CharSequence) {
if (text.isNotEmpty()) {
contactAdapter.searchContacts(text)
} else {
if (text.isBlank()) {
contactAdapter.clear()
} else {
contactAdapter.searchContacts(text)
}
}

Expand Down

0 comments on commit 8e40142

Please sign in to comment.