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

Method initDrawer

src/com/odoo/MainActivity.java:299–322  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

297 }
298
299 private void initDrawer() {
300 Log.d(TAG, "MainActivity->initDrawer()");
301 setDrawerItems();
302 int position = initDrawerListeners();
303
304 /**
305 * TODO: handle intent request from outside
306 */
307 if (getIntent().getAction() != null
308 && !getIntent().getAction().toString()
309 .equalsIgnoreCase("android.intent.action.MAIN")) {
310
311 /**
312 * TODO: handle widget fragment requests.
313 */
314
315 } else {
316 if (position > 0) {
317 if (position != mDrawerItemSelectedPosition) {
318 loadFragment(mDrawerListItems.get(position));
319 }
320 }
321 }
322 }
323
324 private String[] accountList(List<OEUser> accounts) {
325 String[] account_list = new String[accounts.size()];

Callers 1

initMethod · 0.95

Calls 5

setDrawerItemsMethod · 0.95
initDrawerListenersMethod · 0.95
loadFragmentMethod · 0.95
toStringMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected