From f047b9dda122ee8729b7ce30d5b73533a273b614 Mon Sep 17 00:00:00 2001 From: Nick Bradbury Date: Fri, 6 Dec 2024 09:16:09 -0500 Subject: [PATCH] Removed TODO --- .../wordpress/android/ui/prefs/language/PerAppLocaleHelper.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/WordPress/src/main/java/org/wordpress/android/ui/prefs/language/PerAppLocaleHelper.kt b/WordPress/src/main/java/org/wordpress/android/ui/prefs/language/PerAppLocaleHelper.kt index 592abb8dd27a..8145e5869dd9 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/prefs/language/PerAppLocaleHelper.kt +++ b/WordPress/src/main/java/org/wordpress/android/ui/prefs/language/PerAppLocaleHelper.kt @@ -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() @@ -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, "")