mirror of
https://github.com/nextcloud/talk-android
synced 2025-01-18 21:18:15 +00:00
show send button when there is text in input message field
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
1f908f8bae
commit
d36f3c92c6
@ -474,7 +474,13 @@ class MessageInputFragment : Fragment() {
|
||||
|
||||
@Suppress("ClickableViewAccessibility", "CyclomaticComplexMethod", "LongMethod")
|
||||
private fun initVoiceRecordButton() {
|
||||
binding.fragmentMessageInputView.messageSendButton.visibility = View.GONE
|
||||
if (binding.fragmentMessageInputView.messageInput.text.isNullOrBlank()) {
|
||||
binding.fragmentMessageInputView.messageSendButton.visibility = View.GONE
|
||||
binding.fragmentMessageInputView.recordAudioButton.visibility = View.VISIBLE
|
||||
} else {
|
||||
binding.fragmentMessageInputView.messageSendButton.visibility = View.VISIBLE
|
||||
binding.fragmentMessageInputView.recordAudioButton.visibility = View.GONE
|
||||
}
|
||||
binding.fragmentMessageInputView.inputEditText.doAfterTextChanged {
|
||||
binding.fragmentMessageInputView.recordAudioButton.visibility =
|
||||
if (binding.fragmentMessageInputView.inputEditText.text.isEmpty()) View.VISIBLE else View.GONE
|
||||
|
Loading…
Reference in New Issue
Block a user