some night fixes

This commit is contained in:
Zyzf 2023-12-15 01:10:34 +04:00
parent 2a42e395cf
commit cc6178a845
4 changed files with 2 additions and 4 deletions

1
.idea/misc.xml generated
View File

@ -1,4 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">

View File

@ -16,7 +16,6 @@ interface AppContainer {
val userRestRepository: RestUserRepository
companion object {
const val TIMEOUT = 5000L
const val LIMIT = 10
}
}

View File

@ -10,7 +10,7 @@ enum class RemoteKeyType(private val type: String) {
USER(User::class.simpleName ?: "User");
@TypeConverter
fun toRemoteKeyType(value: String) = RemoteKeyType.values().first { it.type == value }
fun toRemoteKeyType(value: String) = entries.first { it.type == value }
@TypeConverter
fun fromRemoteKeyType(value: RemoteKeyType) = value.type

View File

@ -43,7 +43,7 @@ enum class Screen(
fun getItem(route: String): Screen? {
val findRoute = route.split("/").first()
return values().find { value -> value.route.startsWith(findRoute) }
return entries.find { value -> value.route.startsWith(findRoute) }
}
}
}