fix to keep entered text when app is in background

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2023-05-12 14:23:52 +02:00
parent c9e99a7d6f
commit 6be93ad2cd
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

View File

@ -542,7 +542,9 @@ class ChatActivity :
initVoiceRecordButton()
binding?.messageInputView?.inputEditText?.setText(sharedText)
if (sharedText.isNotEmpty()) {
binding?.messageInputView?.inputEditText?.setText(sharedText)
}
binding?.messageInputView?.setAttachmentsListener {
AttachmentDialog(this, this).show()
}