Fix showing username in title. Fixes #1041

This commit is contained in:
Phillip Thelen 2018-08-31 12:36:45 +02:00
parent f9a916ca46
commit 7013dca5bb

View file

@ -477,10 +477,10 @@ open class MainActivity : BaseActivity(), TutorialView.OnTutorialReaction {
if (supportActionBar == null) {
return
}
if (fragment?.customTitle() != null) {
toolbarTitleTextView.text = fragment.customTitle()
} else if (user?.profile != null) {
if (fragment?.customTitle()?.isNotEmpty() != true) {
toolbarTitleTextView.text = user?.profile?.name
} else if (user?.profile != null) {
toolbarTitleTextView.text = fragment.customTitle()
}
}