Merge pull request #3021 from nextcloud/bugfix/fixChatActivityInstance

fix multiple bugs caused by launchMode="singleInstance" and noHistory="true"
This commit is contained in:
Marcel Hibbe 2023-05-12 17:30:40 +02:00 committed by GitHub
commit ab4ce8c4e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -211,8 +211,6 @@
<activity
android:name=".chat.ChatActivity"
android:launchMode="singleInstance"
android:noHistory="true"
android:screenOrientation="portrait"
android:theme="@style/AppTheme" />

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()
}