()
| 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()]; |
no test coverage detected