Merge pull request #4710 from nextcloud/issue-4707-edit-btn-fix

No longer does edit button overlap the recordAudioButton
This commit is contained in:
Sowjanya Kota 2025-02-17 12:52:19 +01:00 committed by GitHub
commit 5e872564b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -160,10 +160,6 @@ class MessageInputFragment : Fragment() {
saveState()
}
override fun onResume() {
super.onResume()
}
override fun onDestroyView() {
super.onDestroyView()
if (mentionAutocomplete != null && mentionAutocomplete!!.isPopupShowing) {
@ -470,7 +466,13 @@ class MessageInputFragment : Fragment() {
}
binding.fragmentMessageInputView.inputEditText.doAfterTextChanged {
binding.fragmentMessageInputView.recordAudioButton.visibility =
if (binding.fragmentMessageInputView.inputEditText.text.isEmpty()) View.VISIBLE else View.GONE
if (binding.fragmentMessageInputView.inputEditText.text.isEmpty() &&
chatActivity.messageInputViewModel.getEditChatMessage.value == null
) {
View.VISIBLE
} else {
View.GONE
}
binding.fragmentMessageInputView.messageSendButton.visibility =
if (binding.fragmentMessageInputView.inputEditText.text.isEmpty() ||