mirror of
https://github.com/nextcloud/talk-android
synced 2025-01-31 03:22:03 +00:00
Merge pull request #4582 from nextcloud/backport/4551/stable-20.1
[stable-20.1] show message send button when there is text in input message field
This commit is contained in:
commit
dd37c7e08c
@ -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