Changeset View
Changeset View
Standalone View
Standalone View
src/it/reyboz/bustorino/ActivityPrincipal.java
Show First 20 Lines • Show All 277 Lines • ▼ Show 20 Lines | private void setupDrawerContent(NavigationView navigationView) { | ||||
} else if(menuItem.getItemId() == R.id.nav_map_item){ | } else if(menuItem.getItemId() == R.id.nav_map_item){ | ||||
closeDrawerIfOpen(); | closeDrawerIfOpen(); | ||||
requestMapFragment(true); | requestMapFragment(true); | ||||
return true; | return true; | ||||
} else if (menuItem.getItemId() == R.id.nav_lines_item) { | } else if (menuItem.getItemId() == R.id.nav_lines_item) { | ||||
closeDrawerIfOpen(); | closeDrawerIfOpen(); | ||||
showLinesFragment(getSupportFragmentManager(), true,null); | showLinesFragment(getSupportFragmentManager(), true,null); | ||||
return true; | return true; | ||||
} else if(menuItem.getItemId() == R.id.drawer_action_info) { | |||||
closeDrawerIfOpen(); | |||||
startActivity(new Intent(ActivityPrincipal.this, ActivityAbout.class)); | |||||
return true; | |||||
} | } | ||||
//selectDrawerItem(menuItem); | //selectDrawerItem(menuItem); | ||||
Log.d(DEBUG_TAG, "pressed item "+menuItem); | Log.d(DEBUG_TAG, "pressed item "+menuItem); | ||||
return true; | return true; | ||||
}); | }); | ||||
▲ Show 20 Lines • Show All 371 Lines • Show Last 20 Lines |
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register