1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-31 03:59:56 +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); Intent settingsIntent = new Intent(this, SettingsActivity.class);
settingsIntent.putExtra(SettingsActivity.EXTRA_TINT_COLOR, navDrawer.getItemTextColor().getDefaultColor()); settingsIntent.putExtra(SettingsActivity.EXTRA_TINT_COLOR, navDrawer.getItemTextColor().getDefaultColor());
startActivity(settingsIntent); startActivity(settingsIntent);
drawerLayout.closeDrawers();
return; return;
case R.id.nav_help: case R.id.nav_help:
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/oliexdev/openScale/wiki"))); startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/oliexdev/openScale/wiki")));
drawerLayout.closeDrawers();
return; return;
default: default:
fragmentClass = OverviewFragment.class; fragmentClass = OverviewFragment.class;