Skip to content

Commit

Permalink
Merge pull request #3022 from nextcloud/backport/3021/stable-17.0
Browse files Browse the repository at this point in the history
[stable-17.0] fix multiple bugs caused by launchMode="singleInstance" and noHistory="true"
  • Loading branch information
mahibi authored May 12, 2023
2 parents a3f674c + 070cc98 commit 6805356
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,6 @@

<activity
android:name=".chat.ChatActivity"
android:launchMode="singleInstance"
android:noHistory="true"
android:screenOrientation="portrait"
android:theme="@style/AppTheme" />

Expand Down
4 changes: 3 additions & 1 deletion app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 6805356

Please sign in to comment.