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 7f945ba5fe
commit 4271ded6aa

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>
}