Move from enum.values() to enum.entries.

Resolves #13767
This commit is contained in:
Grzegorz Bobryk
2024-11-03 16:18:10 +01:00
committed by Greyson Parrelli
parent be92b3cf0a
commit cafbf48783
60 changed files with 95 additions and 95 deletions

View File

@@ -25,7 +25,7 @@ enum class EmojiCategory(val priority: Int, val key: String, @AttrRes val icon:
companion object {
@JvmStatic
fun forKey(key: String) = values().first { it.key == key }
fun forKey(key: String) = entries.first { it.key == key }
@JvmStatic
@StringRes