mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 18:55:31 +08:00
Make it possible to reload settings at runtime
This commit is contained in:
@@ -132,6 +132,7 @@ public final class TermuxActivity extends Activity implements ServiceConnection
|
|||||||
String whatToReload = intent.getStringExtra(RELOAD_STYLE_ACTION);
|
String whatToReload = intent.getStringExtra(RELOAD_STYLE_ACTION);
|
||||||
if (whatToReload == null || "colors".equals(whatToReload)) mTerminalView.checkForColors();
|
if (whatToReload == null || "colors".equals(whatToReload)) mTerminalView.checkForColors();
|
||||||
if (whatToReload == null || "font".equals(whatToReload)) mTerminalView.checkForTypeface();
|
if (whatToReload == null || "font".equals(whatToReload)) mTerminalView.checkForTypeface();
|
||||||
|
if (whatToReload == null || "settings".equals(whatToReload)) mSettings.reloadFromProperties(TermuxActivity.this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user