mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Prevent empty screen showing up sometimes when leaving a conversation
This commit is contained in:
parent
8477980011
commit
06d1ae81b5
1 changed files with 2 additions and 2 deletions
|
|
@ -389,7 +389,8 @@ open class ConversationFragment : SlidingPaneChildFragment() {
|
|||
}
|
||||
|
||||
override fun goBack(): Boolean {
|
||||
if (!findNavController().popBackStack()) {
|
||||
val backStack = findNavController().currentBackStackEntry
|
||||
if (backStack == null || backStack.destination.id == R.id.emptyFragment || !findNavController().popBackStack()) {
|
||||
sharedViewModel.closeSlidingPaneEvent.value = Event(true)
|
||||
sharedViewModel.displayedChatRoom = null
|
||||
|
||||
|
|
@ -400,7 +401,6 @@ open class ConversationFragment : SlidingPaneChildFragment() {
|
|||
findNavController().navigate(action)
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue