Make it possible to reload settings at runtime

This commit is contained in:
Fredrik Fornwall
2015-12-27 15:35:03 +01:00
parent 961e06379b
commit 86e2945069

View File

@@ -132,6 +132,7 @@ public final class TermuxActivity extends Activity implements ServiceConnection
String whatToReload = intent.getStringExtra(RELOAD_STYLE_ACTION);
if (whatToReload == null || "colors".equals(whatToReload)) mTerminalView.checkForColors();
if (whatToReload == null || "font".equals(whatToReload)) mTerminalView.checkForTypeface();
if (whatToReload == null || "settings".equals(whatToReload)) mSettings.reloadFromProperties(TermuxActivity.this);
}
}
};