commit 4a8c1863a8b000c776761526abea4d38689965d4 Author: n8fr8 nathan@guardianproject.info Date: Thu Feb 4 16:49:01 2021 -0500
remove unused menu handling code --- .../org/torproject/android/OrbotMainActivity.java | 19 ------------------- 1 file changed, 19 deletions(-)
diff --git a/app/src/main/java/org/torproject/android/OrbotMainActivity.java b/app/src/main/java/org/torproject/android/OrbotMainActivity.java index 3a35f881..79668887 100644 --- a/app/src/main/java/org/torproject/android/OrbotMainActivity.java +++ b/app/src/main/java/org/torproject/android/OrbotMainActivity.java @@ -443,25 +443,6 @@ public class OrbotMainActivity extends AppCompatActivity implements OrbotConstan doExit(); // exit app } else if (item.getItemId() == R.id.menu_about) { new AboutDialogFragment().show(getSupportFragmentManager(), AboutDialogFragment.TAG); - } else if (item.getItemId() == R.id.menu_scan) { - IntentIntegrator integrator = new IntentIntegrator(OrbotMainActivity.this); - integrator.initiateScan(); - } else if (item.getItemId() == R.id.menu_share_bridge) { - - String bridges = Prefs.getBridgesList(); - - if (bridges != null && bridges.length() > 0) { - try { - bridges = "bridge://" + URLEncoder.encode(bridges, "UTF-8"); - - IntentIntegrator integrator = new IntentIntegrator(OrbotMainActivity.this); - integrator.shareText(bridges); - - } catch (UnsupportedEncodingException e) { - e.printStackTrace(); - } - } - } else if (item.getItemId() == R.id.menu_v3_onion_services) { startActivity(new Intent(this, OnionServiceActivity.class)); } else if (item.getItemId() == R.id.menu_v3_onion_client_auth) {