From 978edb3b522d7af4dbeea8c3eab1d3f199a24f08 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Tue, 27 Nov 2018 21:11:07 +0000 Subject: [PATCH] remove unused navigationView implementation we use the drawer thing --- .../ktnx/mobileledger/LatestTransactions.java | 27 +------------------ 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/LatestTransactions.java b/app/src/main/java/net/ktnx/mobileledger/LatestTransactions.java index 111b71e9..3cd6e10a 100644 --- a/app/src/main/java/net/ktnx/mobileledger/LatestTransactions.java +++ b/app/src/main/java/net/ktnx/mobileledger/LatestTransactions.java @@ -3,7 +3,6 @@ package net.ktnx.mobileledger; import android.content.pm.PackageInfo; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; -import android.support.design.widget.NavigationView; import android.support.design.widget.Snackbar; import android.support.v4.view.GravityCompat; import android.support.v4.widget.DrawerLayout; @@ -15,8 +14,7 @@ import android.view.Menu; import android.view.MenuItem; import android.view.View; -public class LatestTransactions extends AppCompatActivity - implements NavigationView.OnNavigationItemSelectedListener { +public class LatestTransactions extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { @@ -40,9 +38,6 @@ public class LatestTransactions extends AppCompatActivity drawer.addDrawerListener(toggle); toggle.syncState(); - NavigationView navigationView = findViewById(R.id.nav_view); - navigationView.setNavigationItemSelectedListener(this); - android.widget.TextView ver = drawer.findViewById(R.id.drawer_version_text); try { @@ -90,24 +85,4 @@ public class LatestTransactions extends AppCompatActivity return super.onOptionsItemSelected(item); } - @SuppressWarnings("StatementWithEmptyBody") - @Override - public boolean onNavigationItemSelected(MenuItem item) { - // Handle navigation view item clicks here. - int id = item.getItemId(); - - if (id == R.id.nav_latest_transactions) { - // Handle the camera action - } else if (id == R.id.nav_reports) { - - } else if (id == R.id.nav_settings) { - - } else if (id == R.id.nav_exit) { - - } - - DrawerLayout drawer = findViewById(R.id.drawer_layout); - drawer.closeDrawer(GravityCompat.START); - return true; - } } -- 2.39.5