mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-31 12:01:54 +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);
|
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;
|
||||||
|
Reference in New Issue
Block a user