force refresh after lang change
This commit is contained in:
parent
aa6c5764c4
commit
b6970fb5e7
1 changed files with 5 additions and 2 deletions
|
@ -55,6 +55,9 @@ public class MainActivity extends AppCompatActivity {
|
|||
if (Config.logFunctionCalls)
|
||||
log.debug("onCreate");
|
||||
|
||||
toolbar = (Toolbar) findViewById(R.id.toolbar);
|
||||
setSupportActionBar(toolbar);
|
||||
|
||||
if (pluginsList == null) {
|
||||
pluginsList = new ArrayList<PluginBase>();
|
||||
// Register all tabs in app here
|
||||
|
@ -72,8 +75,6 @@ public class MainActivity extends AppCompatActivity {
|
|||
pluginsList.add(SourceXdripFragment.newInstance());
|
||||
pluginsList.add(SourceNSClientFragment.newInstance());
|
||||
pluginsList.add(configBuilderFragment = ConfigBuilderFragment.newInstance());
|
||||
toolbar = (Toolbar) findViewById(R.id.toolbar);
|
||||
setSupportActionBar(toolbar);
|
||||
|
||||
registerBus();
|
||||
|
||||
|
@ -121,10 +122,12 @@ public class MainActivity extends AppCompatActivity {
|
|||
break;
|
||||
case R.id.en_lang: {
|
||||
LocaleHelper.setLocale(this, "en");
|
||||
recreate();
|
||||
break;
|
||||
}
|
||||
case R.id.cs_lang: {
|
||||
LocaleHelper.setLocale(this, "cs");
|
||||
recreate();
|
||||
break;
|
||||
}
|
||||
case R.id.nav_exit:
|
||||
|
|
Loading…
Reference in a new issue