Commit 92a5e15a authored by Schoumi's avatar Schoumi

Add home action in drawer

parent bec8d207
......@@ -387,6 +387,9 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
int id = item.getItemId();
switch (id) {
case R.id.nav_home:
getSupportFragmentManager().popBackStack(null,FragmentManager.POP_BACK_STACK_INCLUSIVE);
break;
case R.id.nav_my_donation:
showDonation();
dismissSnackBar();
......
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/nav_home"
android:title="@string/home"
app:showAsAction="ifRoom"
/>
<item
android:id="@+id/nav_data_displayed"
android:title="@string/blood_donation"
......
......@@ -92,6 +92,7 @@
<string name="osm">Données © OpenStreetMap</string>
<string name="need_write">La Carte à besoin des droits en écriture/lecture sur le stockage externe</string>
<string name="retry">Réessayer</string>
<string name="home">Accueil</string>
<string-array name="gender_array">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment