1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-30 11:40:23 +02:00

Close drawer when opening settings and help

This commit is contained in:
Erik Johansson
2018-02-18 21:04:05 +01:00
parent 66087b74b7
commit 47edce86b7

View File

@@ -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;