mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-28 15:17:38 +00:00
Navigate only if user has not left the fragment
This commit is contained in:
parent
490a784993
commit
0cc29350a0
@ -83,7 +83,7 @@ abstract class BaseFragment<Binding : ViewDataBinding> : Fragment(), ViewModelHo
|
||||
}
|
||||
|
||||
fun NavDirections.navigate() {
|
||||
navigation?.navigate(this)
|
||||
navigation?.currentDestination?.getAction(actionId)?.let { navigation!!.navigate(this) }
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user