Migrate kvstore to kotlin (#5973)

* Get good test around the basic KvStore before starting conversion

* Converted BasicKvStore to kotlin and removed dead code

* Converted JsonKvStore to kotlin

---------

Co-authored-by: Nicolas Raoul <nicolas.raoul@gmail.com>
This commit is contained in:
Paul Hawke 2024-11-28 23:01:29 -06:00 committed by GitHub
parent d6c4cab207
commit dac3657536
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 562 additions and 320 deletions

View file

@ -46,7 +46,7 @@ class SystemThemeUtils @Inject constructor(
// Returns true if the device is in night mode or false otherwise
fun isDeviceInNightMode(): Boolean {
return getSystemDefaultThemeBool(
applicationKvStore.getString(Prefs.KEY_THEME_VALUE, getSystemDefaultTheme())
applicationKvStore.getString(Prefs.KEY_THEME_VALUE, getSystemDefaultTheme())!!
)
}
}