Suppress unchecked cast for PreferenceHelper#observe

I know it's not great but it works for now
This commit is contained in:
William Brawner 2024-10-01 21:17:19 -06:00
parent e7f0603446
commit 50c181004f
Signed by: wbrawner
GPG key ID: 8FF12381C6C90D35

View file

@ -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> override fun <T> observe(preference: Preference): StateFlow<T> = states[preference]!!.asStateFlow() as StateFlow<T>
} }