]> git.ktnx.net Git - mobile-ledger.git/commitdiff
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 37e6fd23d06cfadeba2dcae06d9720d87821ec24..488dbeae02d537405d56089f81720949a1ea9b78 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 3114bba18d8b5902447b72b89084684472b0bb25..0f66ac3859d5d4773a67d40805bea8dba8003d33 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 805c12b309af484c0d7adaa32d97accc649e94d1..d74ae6509aa39dc67c0c8208c926a34c550de5d0 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 74b548432654ad0f18edee593c079402554a1244..68b5254d9dd28753c6b1285b21e6724678bb3a82 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 -->