Controllers now properly remove their toolbar items on pop (fixes #2864)

This commit is contained in:
Jay 2020-04-11 00:06:25 -04:00 committed by arkon
parent f52d49ad00
commit aedb4749a2
2 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,7 @@ abstract class BaseController(bundle: Bundle? = null) : RestoreViewOnCreateContr
if (type.isEnter) {
setTitle()
}
setHasOptionsMenu(type.isEnter)
super.onChangeStarted(handler, type)
}

View File

@ -74,6 +74,7 @@ abstract class SettingsController : PreferenceController() {
if (type.isEnter) {
setTitle()
}
setHasOptionsMenu(type.isEnter)
super.onChangeStarted(handler, type)
}