remove Exit item from the drawer
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 15 Jan 2019 20:38:09 +0000 (20:38 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 15 Jan 2019 20:38:09 +0000 (20:38 +0000)
not really useful, android has other ways for this

app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java
app/src/main/res/layout/activity_main.xml
app/src/main/res/values-bg/strings.xml
app/src/main/res/values/strings.xml

index 37e6fd2..488dbea 100644 (file)
@@ -221,12 +221,6 @@ public class MainActivity extends AppCompatActivity {
         startActivity(intent);
         overridePendingTransition(R.anim.slide_in_right, R.anim.dummy);
     }
-
-    public void navExitClicked(View view) {
-        Log.w("app", "exiting");
-        finish();
-    }
-
     public void navSettingsClicked(View view) {
         Intent intent = new Intent(this, SettingsActivity.class);
         startActivity(intent);
index 3114bba..0f66ac3 100644 (file)
                         android:onClick="navSettingsClicked"
                         android:text="@string/action_settings" />
 
-                    <TextView
-                        android:id="@+id/nav_exit"
-                        style="@style/nav_button"
-                        android:layout_weight="1"
-                        android:drawableStart="@drawable/ic_exit_to_app_black_24dp"
-                        android:onClick="navExitClicked"
-                        android:text="@string/nav_exit_title" />
-
                 </LinearLayout>
 
                 <ScrollView
index 805c12b..d74ae65 100644 (file)
@@ -18,7 +18,6 @@
 
 <resources>
     <string name="app_name">Mobile Ledger</string>
-    <string name="nav_exit_title">Изход</string>
     <string name="title_activity_settings">Настройки</string>
     <string name="pref_header_backend">Сървър</string>
     <string name="pref_title_use_http_auth">Удостоверяване</string>
index 74b5484..68b5254 100644 (file)
@@ -24,7 +24,6 @@
     <string name="nav_header_subtitle" translatable="false">dam+google@ktnx.net</string>
     <string name="nav_latest_transactions_title">Latest transactions</string>
     <string name="nav_reports_title">Reports</string>
-    <string name="nav_exit_title">Exit</string>
     <string name="title_activity_settings">Settings</string>
 
     <!-- Strings related to Settings -->