Address some deprecation warnings
This commit is contained in:
@@ -12,7 +12,7 @@ enum class FollowStatus(val int: Int) {
|
||||
RE_READING(6);
|
||||
|
||||
companion object {
|
||||
fun fromDex(value: String?): FollowStatus = values().firstOrNull { it.name.toLowerCase(Locale.US) == value } ?: UNFOLLOWED
|
||||
fun fromDex(value: String?): FollowStatus = values().firstOrNull { it.name.lowercase(Locale.US) == value } ?: UNFOLLOWED
|
||||
fun fromInt(value: Int): FollowStatus = values().firstOrNull { it.int == value } ?: UNFOLLOWED
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user