Created
April 3, 2021 19:38
-
-
Save ch8n/23e9e42a3c6fa1655821bddc04bde787 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val userName: String | |
get() { | |
preferenceManager.getInstance()?.run { | |
getName() | |
} ?: run { | |
getString(R.string.stranger) | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment