Skip to content

Commit

Permalink
Fix change language not updating translations in app
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmangubat23 committed Oct 8, 2022
1 parent 67daef5 commit fa46e04
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fa46e04

Please sign in to comment.