MCPcopy Create free account
hub / github.com/Odoo-mobile/framework / onItemClick

Method onItemClick

src/com/odoo/MainActivity.java:642–657  ·  view source on GitHub ↗
(AdapterView<?> adapter, View view, int position,
			long id)

Source from the content-addressed store, hash-verified

640 }
641
642 @Override
643 public void onItemClick(AdapterView<?> adapter, View view, int position,
644 long id) {
645 int item_position = position - 1;
646 DrawerItem item = mDrawerListItems.get(item_position);
647 if (!item.isGroupTitle()) {
648 if (!item.getKey().equals("com.odoo.settings")) {
649 mDrawerItemSelectedPosition = item_position + 1;
650 }
651 mAppTitle = item.getTitle();
652 loadFragment(item);
653 mDrawerLayout.closeDrawers();
654 }
655 mDrawerListView.setItemChecked(mDrawerItemSelectedPosition, true);
656
657 }
658
659 private void loadFragment(DrawerItem item) {
660

Callers

nothing calls this directly

Calls 6

isGroupTitleMethod · 0.95
getKeyMethod · 0.95
getTitleMethod · 0.95
loadFragmentMethod · 0.95
equalsMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected