update BaseController.kt (#3423)

(cherry picked from commit d8b1f60581617c3536e8314d9c6da7b21a444937)
This commit is contained in:
tatsuya25 2020-07-08 00:29:15 +03:00 committed by Jobobby04
parent 16933df164
commit 03d8425686

View File

@ -64,8 +64,9 @@ abstract class BaseController<VB : ViewBinding>(bundle: Bundle? = null) :
override fun onChangeStarted(handler: ControllerChangeHandler, type: ControllerChangeType) {
if (type.isEnter) {
setTitle()
setHasOptionsMenu(true)
}
setHasOptionsMenu(type.isEnter)
super.onChangeStarted(handler, type)
}