@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case EDIT_USER_PRODUCED_DATA: setEditMode(true); return true; case MODIFY_PORTFOLIO: PMHelper.openPortfolioInBrowser(getSherlockActivity()); return true; default: return super.onOptionsItemSelected(item); } }
@Override public Void performAction(Void... params) throws SecurityException, Exception { PMHelper.saveUserProducedData(mPortfolio, mUpdatedElements, mCherryElements); return null; }