mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
Fix to open conversation list when navigating back after chat was opened by notification
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
e142439941
commit
ae9e9924e6
@ -222,6 +222,7 @@
|
|||||||
android:name=".chat.ChatActivity"
|
android:name=".chat.ChatActivity"
|
||||||
android:theme="@style/AppTheme"
|
android:theme="@style/AppTheme"
|
||||||
android:launchMode="singleInstance"
|
android:launchMode="singleInstance"
|
||||||
|
android:noHistory="true"
|
||||||
android:screenOrientation="portrait" />
|
android:screenOrientation="portrait" />
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
|
@ -579,6 +579,12 @@ class ChatActivity :
|
|||||||
viewThemeUtils.material.themeToolbar(binding.chatToolbar)
|
viewThemeUtils.material.themeToolbar(binding.chatToolbar)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onBackPressed() {
|
||||||
|
val intent = Intent(this, ConversationsListActivity::class.java)
|
||||||
|
intent.putExtras(Bundle())
|
||||||
|
startActivity(intent)
|
||||||
|
}
|
||||||
|
|
||||||
private fun initAdapter() {
|
private fun initAdapter() {
|
||||||
val senderId = if (!conversationUser!!.userId.equals("?")) {
|
val senderId = if (!conversationUser!!.userId.equals("?")) {
|
||||||
"users/" + conversationUser!!.userId
|
"users/" + conversationUser!!.userId
|
||||||
|
Loading…
Reference in New Issue
Block a user