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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user