You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +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) }
|
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