mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-20 04:39:04 +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) {
|
||||
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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue