From fa46e04867767a6897588bf114b46d54da041b20 Mon Sep 17 00:00:00 2001 From: Reuben Mangubat Date: Sat, 8 Oct 2022 09:12:27 +0800 Subject: [PATCH] Fix change language not updating translations in app --- .../org/newlogic/smartscanner/settings/SettingsActivity.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/org/newlogic/smartscanner/settings/SettingsActivity.kt b/app/src/main/java/org/newlogic/smartscanner/settings/SettingsActivity.kt index 41d5aad1..f9e16321 100644 --- a/app/src/main/java/org/newlogic/smartscanner/settings/SettingsActivity.kt +++ b/app/src/main/java/org/newlogic/smartscanner/settings/SettingsActivity.kt @@ -116,9 +116,8 @@ class SettingsActivity : AppCompatActivity() { private fun saveLanguage(editor: SharedPreferences.Editor, language : String) { // Set new language - LanguageUtils.changeLanguage(this, language) - // Save new language to sharedPrefs saveToPreference(editor, Language.NAME, language) + LanguageUtils.changeLanguage(this, language) } private fun saveToPreference( editor: SharedPreferences.Editor, key: String, value : String) {