Skip to content

Commit

Permalink
Fix incorrect key name
Browse files Browse the repository at this point in the history
  • Loading branch information
theothernt committed Nov 25, 2023
1 parent 6811af0 commit 67a8e37
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,11 @@ class MigrationHelper(val context: Context) {
private fun release18() {
Log.i(TAG, "Migrating settings for release 18")

// Location
// Remove bad key if found
val locationUsed = prefs.contains("location_style")
if (locationUsed) {
val locationStyle = prefs.getString("location_style", "POI").toStringOrEmpty()
if (locationStyle.contains("DISABLED")) {
if (locationStyle.contains("OFF")) {
Log.i(TAG, "Setting location style to default/POI and setting slot to empty")
prefs.edit().putString("location_style", "POI").apply()
prefs.edit().putString("slot_bottom_right1", "EMPTY").apply()
Expand Down

0 comments on commit 67a8e37

Please sign in to comment.