Fix the icon issues

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2020-01-09 15:09:05 +01:00
parent e105eef2a8
commit eca83fef93
No known key found for this signature in database
GPG Key ID: CDE0BBD2738C4CC0
2 changed files with 2 additions and 1 deletions

View File

@ -644,6 +644,7 @@ class ChatController(args: Bundle) : BaseController(), MessagesListAdapter
override fun onAttach(view: View) { override fun onAttach(view: View) {
super.onAttach(view) super.onAttach(view)
setTitle()
eventBus.register(this) eventBus.register(this)
if (conversationUser?.userId != "?" && conversationUser?.hasSpreedFeatureCapability( if (conversationUser?.userId != "?" && conversationUser?.hasSpreedFeatureCapability(

View File

@ -99,6 +99,7 @@ abstract class BaseController : ButterKnifeController(), ComponentCallbacks {
} }
override fun onChangeStarted(changeHandler: ControllerChangeHandler, changeType: ControllerChangeType) { override fun onChangeStarted(changeHandler: ControllerChangeHandler, changeType: ControllerChangeType) {
actionBar?.setIcon(null)
setOptionsMenuHidden(true) setOptionsMenuHidden(true)
super.onChangeStarted(changeHandler, changeType) super.onChangeStarted(changeHandler, changeType)
} }
@ -129,7 +130,6 @@ abstract class BaseController : ButterKnifeController(), ComponentCallbacks {
} }
it.container.layoutParams = layoutParamsForContainer it.container.layoutParams = layoutParamsForContainer
it.toolbar.layoutParams = layoutParams it.toolbar.layoutParams = layoutParams
it.toolbar.forceLayout()
} }
} }