Use proper radix for the public key number conversion.

This commit is contained in:
Anton Chekulaev
2020-09-04 01:00:06 +10:00
parent 8f2fc3ab74
commit ad67f478c8

View File

@@ -23,7 +23,7 @@ object AvatarPlaceholderGenerator {
if (hashString.length >= 12 && hashString.matches(hexRegex)) { if (hashString.length >= 12 && hashString.matches(hexRegex)) {
hash = hashString.substring(0 until 12).toLong(16) hash = hashString.substring(0 until 12).toLong(16)
} else { } else {
hash = hashString.toLong() hash = hashString.toLong(16)
} }
// Do not cache color array, it may be different depends on the current theme. // Do not cache color array, it may be different depends on the current theme.