mirror of
https://github.com/geode-sdk/android-launcher.git
synced 2026-10-21 16:32:39 +00:00
properly set value in set
This commit is contained in:
1 file changed
+2
@@ -82,6 +82,8 @@ class PreferenceUtils(private val sharedPreferences: SharedPreferences) {
|
||||
set(value) {
|
||||
// ignore setting the same thing (messes up default preferences)
|
||||
if (state.value == value) { return }
|
||||
state.value = value
|
||||
|
||||
preferenceSet(preferences, preferenceKey, value)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user