Commit 20896001 authored by deregges's avatar deregges

Fixed highscores displaying null name instead of anonymous

parent 9c8b5c08
......@@ -110,8 +110,8 @@ class Highscores : AppCompatActivity() {
s.substringAfterLast(':')
)
override fun toString(): String = "${cat.ordinal}:$score:$name"
override fun toString(): String = "${cat.ordinal}:$score:${getDisplayName()}"
fun getDisplayName() = name ?: appStr(R.string.anonymousUser)
private fun getDisplayName() = name ?: appStr(R.string.anonymousUser)
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment