Skip to content

Commit

Permalink
Fixed issue where migration didn't set prefs
Browse files Browse the repository at this point in the history
  • Loading branch information
theothernt committed Nov 21, 2023
1 parent fd4bd04 commit 1c1f862
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ class MigrationHelper(val context: Context) {
prefs.edit().putString("slot_bottom_right1", "EMPTY").apply()
} else {
Log.i(TAG, "No change to location as default is used")
prefs.edit().putString("slot_bottom_right1", "LOCATION").apply()
}
}

Expand All @@ -176,6 +177,7 @@ class MigrationHelper(val context: Context) {
prefs.edit().putString("slot_bottom_left1", "EMPTY").apply()
} else {
Log.i(TAG, "Set new clock prefs")
prefs.edit().putString("slot_bottom_left1", "CLOCK").apply()
val textSize = prefs.getString("clock_size", "18")
if (textSize == "36") {
Log.i(TAG, "Clock text size at old default, updating to new size")
Expand Down

0 comments on commit 1c1f862

Please sign in to comment.