mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-08-14 11:47:26 +00:00
Navigate only if user has not left the fragment
This commit is contained in:
@@ -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) }
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user