|
12 | 12 | import android.content.IntentFilter;
|
13 | 13 | import android.content.ServiceConnection;
|
14 | 14 | import android.content.pm.PackageManager;
|
| 15 | +import android.graphics.Color; |
15 | 16 | import android.net.Uri;
|
16 | 17 | import android.os.Build;
|
17 | 18 | import android.os.Bundle;
|
|
26 | 27 | import android.view.WindowManager;
|
27 | 28 | import android.view.autofill.AutofillManager;
|
28 | 29 | import android.widget.EditText;
|
| 30 | +import android.widget.ImageButton; |
29 | 31 | import android.widget.ListView;
|
30 | 32 | import android.widget.Toast;
|
31 | 33 |
|
@@ -218,6 +220,8 @@ public void onCreate(Bundle savedInstanceState) {
|
218 | 220 |
|
219 | 221 | setTerminalToolbarView(savedInstanceState);
|
220 | 222 |
|
| 223 | + setSettingsButtonView(); |
| 224 | + |
221 | 225 | setNewSessionButtonView();
|
222 | 226 |
|
223 | 227 | setToggleKeyboardView();
|
@@ -402,6 +406,7 @@ private void setDrawerTheme() {
|
402 | 406 | if (mProperties.isUsingBlackUI()) {
|
403 | 407 | findViewById(R.id.left_drawer).setBackgroundColor(ContextCompat.getColor(this,
|
404 | 408 | android.R.color.background_dark));
|
| 409 | + ((ImageButton) findViewById(R.id.settings_button)).setColorFilter(Color.WHITE); |
405 | 410 | }
|
406 | 411 | }
|
407 | 412 |
|
@@ -496,6 +501,13 @@ private void saveTerminalToolbarTextInput(Bundle savedInstanceState) {
|
496 | 501 |
|
497 | 502 |
|
498 | 503 |
|
| 504 | + private void setSettingsButtonView() { |
| 505 | + ImageButton settingsButton = findViewById(R.id.settings_button); |
| 506 | + settingsButton.setOnClickListener(v -> { |
| 507 | + startActivity(new Intent(this, SettingsActivity.class)); |
| 508 | + }); |
| 509 | + } |
| 510 | + |
499 | 511 | private void setNewSessionButtonView() {
|
500 | 512 | View newSessionButton = findViewById(R.id.new_session_button);
|
501 | 513 | newSessionButton.setOnClickListener(v -> mTermuxTerminalSessionClient.addNewSession(false, null));
|
|
0 commit comments