From 73246d2a72e554098170ec4212df23e9548ac2e0 Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Thu, 23 May 2019 00:02:25 +0400 Subject: [PATCH] Removed reload button in main ActionBar menu, fixed bug with loading screen when creating new chat --- .../influence/views/MainActivity.java | 10 --------- .../res/drawable/ic_autorenew_white_24dp.xml | 22 ------------------- app/src/main/res/menu/main_actionbar_menu.xml | 8 +------ 3 files changed, 1 insertion(+), 39 deletions(-) delete mode 100644 app/src/main/res/drawable/ic_autorenew_white_24dp.xml 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