From 47edce86b781948ea7adc16206c4c79618193d87 Mon Sep 17 00:00:00 2001 From: Erik Johansson Date: Sun, 18 Feb 2018 21:04:05 +0100 Subject: [PATCH] Close drawer when opening settings and help --- .../src/main/java/com/health/openscale/gui/MainActivity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android_app/app/src/main/java/com/health/openscale/gui/MainActivity.java b/android_app/app/src/main/java/com/health/openscale/gui/MainActivity.java index f0ca3561..367dabf8 100644 --- a/android_app/app/src/main/java/com/health/openscale/gui/MainActivity.java +++ b/android_app/app/src/main/java/com/health/openscale/gui/MainActivity.java @@ -280,9 +280,11 @@ public class MainActivity extends AppCompatActivity { Intent settingsIntent = new Intent(this, SettingsActivity.class); settingsIntent.putExtra(SettingsActivity.EXTRA_TINT_COLOR, navDrawer.getItemTextColor().getDefaultColor()); startActivity(settingsIntent); + drawerLayout.closeDrawers(); return; case R.id.nav_help: startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/oliexdev/openScale/wiki"))); + drawerLayout.closeDrawers(); return; default: fragmentClass = OverviewFragment.class;