From 3f5c6b7ebf32e5214db1a29cf4a1585180dcfde9 Mon Sep 17 00:00:00 2001 From: William Brawner Date: Tue, 1 Oct 2024 21:19:15 -0600 Subject: [PATCH] Suppress unchecked cast for FakePreferenceHelper#observe I know it's not great but it works for now --- .../java/com/wbrawner/simplemarkdown/FakePreferenceHelper.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/test/java/com/wbrawner/simplemarkdown/FakePreferenceHelper.kt b/app/src/test/java/com/wbrawner/simplemarkdown/FakePreferenceHelper.kt index a600129..d5b4cd1 100644 --- a/app/src/test/java/com/wbrawner/simplemarkdown/FakePreferenceHelper.kt +++ b/app/src/test/java/com/wbrawner/simplemarkdown/FakePreferenceHelper.kt @@ -23,6 +23,7 @@ class FakePreferenceHelper: PreferenceHelper { preferences[preference] = value } + @Suppress("UNCHECKED_CAST") override fun observe(preference: Preference): StateFlow = preferenceFlow(preference) as StateFlow } \ No newline at end of file