mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-08-14 02:49:02 +00:00
Call removeMenuProvider
on Fragment::onStop
This commit is contained in:
@@ -92,4 +92,10 @@ abstract class BaseFragment<Binding : ViewDataBinding> : Fragment(), ViewModelHo
|
||||
navigation?.currentDestination?.getAction(actionId)?.let { navigation!!.navigate(this) }
|
||||
}
|
||||
|
||||
override fun onStop() {
|
||||
if (this is MenuProvider) {
|
||||
activity?.removeMenuProvider(this)
|
||||
}
|
||||
super.onStop()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user