mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01:00
Using finish() to handle only forward message back button
This commit is contained in:
parent
cbb391c017
commit
ccf6337bb0
@ -206,7 +206,11 @@ class ConversationsListActivity :
|
|||||||
|
|
||||||
private val onBackPressedCallback = object : OnBackPressedCallback(true) {
|
private val onBackPressedCallback = object : OnBackPressedCallback(true) {
|
||||||
override fun handleOnBackPressed() {
|
override fun handleOnBackPressed() {
|
||||||
finishAffinity()
|
if (forwardMessage) {
|
||||||
|
finish()
|
||||||
|
} else {
|
||||||
|
finishAffinity()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user