mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-20 10:23:30 -04:00
Merge pull request #2891 from kiwix/Issue#2482
Fix crash scenarios during navigation
This commit is contained in:
commit
39e944b4d0
@ -250,7 +250,9 @@ abstract class CoreMainActivity : BaseActivity(), WebViewProvider {
|
||||
supportFragmentManager.fragments
|
||||
|
||||
fun navigate(action: NavDirections) {
|
||||
navController.navigate(action)
|
||||
navController.currentDestination?.getAction(action.actionId)?.run {
|
||||
navController.navigate(action)
|
||||
}
|
||||
}
|
||||
|
||||
fun navigate(fragmentId: Int) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user