mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 03:59:35 +01:00
Merge pull request #2960 from nextcloud/bugfix/2959/fixToOpenConvList
Fix to open conversation list when navigating back
This commit is contained in:
commit
0e1511a62f
@ -222,6 +222,7 @@
|
||||
android:name=".chat.ChatActivity"
|
||||
android:theme="@style/AppTheme"
|
||||
android:launchMode="singleInstance"
|
||||
android:noHistory="true"
|
||||
android:screenOrientation="portrait" />
|
||||
|
||||
<activity
|
||||
|
@ -579,6 +579,12 @@ class ChatActivity :
|
||||
viewThemeUtils.material.themeToolbar(binding.chatToolbar)
|
||||
}
|
||||
|
||||
override fun onBackPressed() {
|
||||
val intent = Intent(this, ConversationsListActivity::class.java)
|
||||
intent.putExtras(Bundle())
|
||||
startActivity(intent)
|
||||
}
|
||||
|
||||
private fun initAdapter() {
|
||||
val senderId = if (!conversationUser!!.userId.equals("?")) {
|
||||
"users/" + conversationUser!!.userId
|
||||
|
Loading…
Reference in New Issue
Block a user