diff --git a/app/src/main/java/io/github/chronosx88/influence/views/MainActivity.java b/app/src/main/java/io/github/chronosx88/influence/views/MainActivity.java index 5b6d1cc..19a92fc 100644 --- a/app/src/main/java/io/github/chronosx88/influence/views/MainActivity.java +++ b/app/src/main/java/io/github/chronosx88/influence/views/MainActivity.java @@ -60,7 +60,6 @@ public class MainActivity extends AppCompatActivity implements CoreContracts.IMa fab.setOnClickListener((v) -> { Pair pair = ViewUtils.INSTANCE.setupEditTextDialog(MainActivity.this, getString(R.string.input_companion_username)); pair.getFirst().setPositiveButton(getString(R.string.ok), (dialog, which) -> { - showProgressBar(true); presenter.startChatWithPeer(pair.getSecond().getText().toString()); }); pair.getFirst().setNegativeButton(getString(R.string.cancel), (dialog, which) -> { @@ -88,15 +87,6 @@ public class MainActivity extends AppCompatActivity implements CoreContracts.IMa return true; } - @Override - public boolean onOptionsItemSelected(MenuItem item) { - if(item.getItemId() == R.id.action_reconnect_network) { - progressDialog.show(); - presenter.initConnection(); - } - return true; - } - @Override public void showSnackbar(@NotNull String message) { runOnUiThread(() -> Snackbar.make(getRootView(), message, Snackbar.LENGTH_LONG).show()); diff --git a/app/src/main/res/drawable/ic_autorenew_white_24dp.xml b/app/src/main/res/drawable/ic_autorenew_white_24dp.xml deleted file mode 100644 index a23db6d..0000000 --- a/app/src/main/res/drawable/ic_autorenew_white_24dp.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - diff --git a/app/src/main/res/menu/main_actionbar_menu.xml b/app/src/main/res/menu/main_actionbar_menu.xml index eb81b5b..d3be4b4 100644 --- a/app/src/main/res/menu/main_actionbar_menu.xml +++ b/app/src/main/res/menu/main_actionbar_menu.xml @@ -16,11 +16,5 @@ ~ along with this program. If not, see . --> - - + \ No newline at end of file