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

@@ -154,12 +154,7 @@ public class PcView 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);
// Bind to the computer manager service
bindService(new Intent(PcView.this, ComputerManagerService.class), serviceConnection,