Skip to content

Commit

Permalink
properly set value in set
Browse files Browse the repository at this point in the history
  • Loading branch information
qimiko committed Jan 23, 2024
1 parent a50e0a0 commit dc72608
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/com/geode/launcher/utils/PreferenceUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit dc72608

Please sign in to comment.