mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-13 17:51:57 +00:00
Fix showing username in title. Fixes #1041
This commit is contained in:
parent
f9a916ca46
commit
7013dca5bb
1 changed files with 3 additions and 3 deletions
|
|
@ -477,10 +477,10 @@ open class MainActivity : BaseActivity(), TutorialView.OnTutorialReaction {
|
||||||
if (supportActionBar == null) {
|
if (supportActionBar == null) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (fragment?.customTitle() != null) {
|
if (fragment?.customTitle()?.isNotEmpty() != true) {
|
||||||
toolbarTitleTextView.text = fragment.customTitle()
|
|
||||||
} else if (user?.profile != null) {
|
|
||||||
toolbarTitleTextView.text = user?.profile?.name
|
toolbarTitleTextView.text = user?.profile?.name
|
||||||
|
} else if (user?.profile != null) {
|
||||||
|
toolbarTitleTextView.text = fragment.customTitle()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue