No longer does edit button overlap the recordAudioButton

Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
This commit is contained in:
rapterjet2004 2025-02-12 12:17:13 -06:00 committed by Marcel Hibbe
parent bd720b8261
commit d46f2488a7
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

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,9 @@ 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() ||