Suppress unchecked cast for FakePreferenceHelper#observe
I know it's not great but it works for now
This commit is contained in:
parent
2f5a58c101
commit
64ab2bf345
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