Suppress unchecked cast for FakePreferenceHelper#observe
I know it's not great but it works for now
This commit is contained in:
parent
79d609f138
commit
3f5c6b7ebf
1 changed files with 1 additions and 0 deletions
|
@ -23,6 +23,7 @@ class FakePreferenceHelper: PreferenceHelper {
|
||||||
preferences[preference] = value
|
preferences[preference] = value
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("UNCHECKED_CAST")
|
||||||
override fun <T> observe(preference: Preference): StateFlow<T> =
|
override fun <T> observe(preference: Preference): StateFlow<T> =
|
||||||
preferenceFlow(preference) as StateFlow<T>
|
preferenceFlow(preference) as StateFlow<T>
|
||||||
}
|
}
|
Loading…
Reference in a new issue