Skip to content

Commit

Permalink
update lite
Browse files Browse the repository at this point in the history
  • Loading branch information
rlam20 committed Jul 1, 2024
1 parent 7ab1d65 commit fbcaf35
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ class DashboardActivity : DashboardElementActivity(), OnHomeItemClickListener, N
val userProfileModel = profileDbHandler.userModel
if (userProfileModel != null) {
var name: String? = userProfileModel.getFullName()
if (name?.trim { it <= ' ' }?.isEmpty() == true) {
if (name.isNullOrBlank()) {
name = profileDbHandler.userModel?.name
}
activityDashboardBinding.appBarBell.appTitleName.text = "$name's Planet"
activityDashboardBinding.appBarBell.appTitleName.text = getString(R.string.planet_name, name)
} else {
activityDashboardBinding.appBarBell.appTitleName.text = getString(R.string.app_project_name)
}
Expand Down

0 comments on commit fbcaf35

Please sign in to comment.