Skip to content

Commit

Permalink
Remove language pref during migration
Browse files Browse the repository at this point in the history
  • Loading branch information
nbradbury committed Dec 17, 2024
1 parent 03cac31 commit 394943f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,8 @@ class AppPrefsWrapper @Inject constructor(val buildConfigWrapper: BuildConfigWra
return AppPrefs.prefs().getString(key, defValue)
}

fun setPrefString(key: String, value: String) {
AppPrefs.prefs().edit().putString(key, value).apply()
fun removePref(key: String) {
AppPrefs.prefs().edit().remove(key).apply()
}

fun getDebugBooleanPref(key: String, default: Boolean = false) =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class PerAppLocaleManager @Inject constructor(
"PerAppLocaleManager: performing migration to AndroidX per-app language prefs"
)
setCurrentLocaleByLanguageCode(previousLanguage)
appPrefsWrapper.removePref(OLD_LOCALE_PREF_KEY_STRING)
} else {
appLogWrapper.d(
AppLog.T.SETTINGS,
Expand Down

0 comments on commit 394943f

Please sign in to comment.