mirror of https://github.com/M66B/FairEmail.git
Added setup exit navigation menu item
This commit is contained in:
parent
1a596ea511
commit
657e1eeaf2
|
@ -189,6 +189,14 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
|
||||||
|
|
||||||
final List<NavMenuItem> menus = new ArrayList<>();
|
final List<NavMenuItem> menus = new ArrayList<>();
|
||||||
|
|
||||||
|
menus.add(new NavMenuItem(R.drawable.baseline_exit_to_app_24, R.string.menu_exit, new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
drawerLayout.closeDrawer(drawerContainer, false);
|
||||||
|
onBackPressed();
|
||||||
|
}
|
||||||
|
}).setSeparated());
|
||||||
|
|
||||||
menus.add(new NavMenuItem(R.drawable.baseline_archive_24, R.string.title_setup_export, new Runnable() {
|
menus.add(new NavMenuItem(R.drawable.baseline_archive_24, R.string.title_setup_export, new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24.0"
|
||||||
|
android:viewportHeight="24.0"
|
||||||
|
android:tint="?attr/colorControlNormal">
|
||||||
|
<path
|
||||||
|
android:fillColor="@android:color/white"
|
||||||
|
android:pathData="M10.09,15.59L11.5,17l5,-5 -5,-5 -1.41,1.41L12.67,11H3v2h9.67l-2.58,2.59zM19,3H5c-1.11,0 -2,0.9 -2,2v4h2V5h14v14H5v-4H3v4c0,1.1 0.89,2 2,2h14c1.1,0 2,-0.9 2,-2V5c0,-1.1 -0.9,-2 -2,-2z"/>
|
||||||
|
</vector>
|
|
@ -90,6 +90,7 @@
|
||||||
|
|
||||||
<string name="title_name_count">%1$s (%2$s)</string>
|
<string name="title_name_count">%1$s (%2$s)</string>
|
||||||
|
|
||||||
|
<string name="menu_exit">Exit</string>
|
||||||
<string name="menu_answers">Templates</string>
|
<string name="menu_answers">Templates</string>
|
||||||
<string name="menu_operations">Operations</string>
|
<string name="menu_operations">Operations</string>
|
||||||
<string name="menu_contacts">Local contacts</string>
|
<string name="menu_contacts">Local contacts</string>
|
||||||
|
|
Loading…
Reference in New Issue