Close navigation drawer on click

This commit is contained in:
TebbeUbben 2018-06-09 13:17:26 +02:00
parent 30dbbb12a8
commit 531a926d00

View file

@ -209,6 +209,7 @@ public class MainActivity extends AppCompatActivity {
Intent intent = new Intent(this, SingleFragmentActivity.class);
intent.putExtra("plugin", MainApp.getPluginsList().indexOf(p));
startActivity(intent);
((DrawerLayout) findViewById(R.id.drawer_layout)).closeDrawers();
return true;
});
}