mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 18:15:22 +00:00
Using trim and empty to capture semantic concept of nothing being in there
This commit is contained in:
parent
48aacae6c5
commit
031a18061d
@ -120,7 +120,7 @@ class InputBar : RelativeLayout, InputBarEditTextDelegate, QuoteViewDelegate, Li
|
|||||||
|
|
||||||
// region Updating
|
// region Updating
|
||||||
override fun inputBarEditTextContentChanged(text: CharSequence) {
|
override fun inputBarEditTextContentChanged(text: CharSequence) {
|
||||||
microphoneButton.isVisible = text.all { it.isWhitespace() }
|
microphoneButton.isVisible = text.trim().isEmpty()
|
||||||
sendButton.isVisible = microphoneButton.isGone
|
sendButton.isVisible = microphoneButton.isGone
|
||||||
delegate?.inputBarEditTextContentChanged(text)
|
delegate?.inputBarEditTextContentChanged(text)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user