Skip to content

Commit

Permalink
Removed TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
nbradbury committed Dec 6, 2024
1 parent b2f7d0b commit f047b9d
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ class PerAppLocaleHelper @Inject constructor(

fun getCurrentLocaleDisplayName(): String = getCurrentLocale().displayName

fun getCurrentLocaleLanguageCode(): String = getCurrentLocale().language

/**
* Important: this should only be called after Activity.onCreate()
* https://developer.android.com/reference/androidx/appcompat/app/AppCompatDelegate#getApplicationLocales()
Expand Down Expand Up @@ -67,7 +65,6 @@ class PerAppLocaleHelper @Inject constructor(
* Previously the app locale was stored in SharedPreferences, so here we migrate to AndroidX per-app language prefs
*/
fun performMigrationIfNecessary() {
resetApplicationLocale() // TODO remove
if (isPerAppLanguagePrefsEnabled() && isApplicationLocaleEmpty()) {
val languagePrefKey = LocaleManager.getLocalePrefKeyString()
val previousLanguage = appPrefsWrapper.prefs().getString(languagePrefKey, "")
Expand Down

0 comments on commit f047b9d

Please sign in to comment.