fix build

This commit is contained in:
InsanusMokrassar 2023-08-24 02:17:27 +06:00
parent 069d4c61b7
commit 0acac205af

View File

@ -52,7 +52,9 @@ class KeyValueStore<T : Any> internal constructor (
}
}
override fun onSharedPreferenceChanged(sp: SharedPreferences, key: String) {
override fun onSharedPreferenceChanged(sp: SharedPreferences?, key: String?) {
sp ?: return
key ?: return
val value = sp.all[key]
cachedData ?: return
if (value != null) {