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