Fix manually switching language to Chinese

This commit is contained in:
Cameron Gutman
2017-05-04 22:24:18 -07:00
parent b21ee5ca31
commit b5c96cbb53
6 changed files with 31 additions and 29 deletions

View File

@@ -235,12 +235,7 @@ public class AppView extends Activity implements AdapterFragmentCallbacks {
shortcutHelper = new ShortcutHelper(this);
String locale = PreferenceConfiguration.readPreferences(this).language;
if (!locale.equals(PreferenceConfiguration.DEFAULT_LANGUAGE)) {
Configuration config = new Configuration(getResources().getConfiguration());
config.locale = new Locale(locale);
getResources().updateConfiguration(config, getResources().getDisplayMetrics());
}
UiHelper.setLocale(this);
setContentView(R.layout.activity_app_view);