Suppress unchecked cast for FakePreferenceHelper#observe

I know it's not great but it works for now
This commit is contained in:
William Brawner 2024-10-01 21:19:15 -06:00
parent 79d609f138
commit 3f5c6b7ebf

View file

@ -23,6 +23,7 @@ class FakePreferenceHelper: PreferenceHelper {
preferences[preference] = value
}
@Suppress("UNCHECKED_CAST")
override fun <T> observe(preference: Preference): StateFlow<T> =
preferenceFlow(preference) as StateFlow<T>
}