Suppress unchecked cast for PreferenceHelper#observe
I know it's not great but it works for now
This commit is contained in:
parent
e7f0603446
commit
50c181004f
1 changed files with 1 additions and 0 deletions
|
@ -47,6 +47,7 @@ class AndroidPreferenceHelper(context: Context, private val coroutineScope: Coro
|
|||
}
|
||||
}
|
||||
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
override fun <T> observe(preference: Preference): StateFlow<T> = states[preference]!!.asStateFlow() as StateFlow<T>
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue