From 6be93ad2cdf30c3f2cb3e6907db60a03c621236d Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Fri, 12 May 2023 14:23:52 +0200 Subject: [PATCH] fix to keep entered text when app is in background Signed-off-by: Marcel Hibbe --- app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt index f3d47a718..292911191 100644 --- a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt @@ -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() }