From 531a926d00165313084c8d01cc6654a5ea916930 Mon Sep 17 00:00:00 2001 From: TebbeUbben Date: Sat, 9 Jun 2018 13:17:26 +0200 Subject: [PATCH] Close navigation drawer on click --- app/src/main/java/info/nightscout/androidaps/MainActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/info/nightscout/androidaps/MainActivity.java b/app/src/main/java/info/nightscout/androidaps/MainActivity.java index 34e67e42e5..c1b616c086 100644 --- a/app/src/main/java/info/nightscout/androidaps/MainActivity.java +++ b/app/src/main/java/info/nightscout/androidaps/MainActivity.java @@ -209,6 +209,7 @@ public class MainActivity extends AppCompatActivity { Intent intent = new Intent(this, SingleFragmentActivity.class); intent.putExtra("plugin", MainApp.getPluginsList().indexOf(p)); startActivity(intent); + ((DrawerLayout) findViewById(R.id.drawer_layout)).closeDrawers(); return true; }); }