update BaseController.kt (#3423)

This commit is contained in:
tatsuya25 2020-07-08 00:29:15 +03:00 committed by GitHub
parent 16fc58bd16
commit d8b1f60581
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)
}