mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-01-11 16:33:37 +00:00
Call removeMenuProvider
on Fragment::onStop
This commit is contained in:
parent
dc26ad7125
commit
0a85ef61c3
@ -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()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user