|
|
@ -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)
|
|
|
|
}
|
|
|
|
}
|
|
|
|