Try to get language up and work

This commit is contained in:
khanhduytran0 2020-11-21 17:35:12 +07:00
parent 63d9d29a87
commit 746aeea4c5
3 changed files with 8 additions and 6 deletions

View file

@ -19,11 +19,13 @@ public class LocaleUtils {
LauncherPreferences.loadPreferences();
}
Locale locale;
if (LauncherPreferences.PREF_LANGUAGE.equals("default")) {
return context;
locale = DEFAULT_LOCALE;
} else {
locale = new Locale(LauncherPreferences.PREF_LANGUAGE);
}
Locale locale = new Locale(LauncherPreferences.PREF_LANGUAGE);
Locale.setDefault(locale);
Resources res = context.getResources();