@Override public void onListItemClick(GridView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); CloudNetwork network = (CloudNetwork) l.getItemAtPosition(position); AlfrescoAccount currentAccount = SessionUtils.getAccount(getActivity()); if (currentAccount != null && !currentAccount.getRepositoryId().equals(network.getIdentifier())) { EventBusManager.getInstance() .post(new RequestSessionEvent(currentAccount, network.getIdentifier(), true)); getActivity() .getSupportFragmentManager() .popBackStack(null, FragmentManager.POP_BACK_STACK_INCLUSIVE); } }
// /////////////////////////////////////////////////////////////////////////// // EVENTS // /////////////////////////////////////////////////////////////////////////// @Override protected void onPostExecute(LoaderResult<Void> result) { super.onPostExecute(result); EventBusManager.getInstance().post(new CleanSyncFavoriteEvent()); }
// /////////////////////////////////////////////////////////////////////////// // EVENTS // /////////////////////////////////////////////////////////////////////////// @Override protected void onPostExecute(LoaderResult<PagingResult<ProcessDefinition>> result) { super.onPostExecute(result); EventBusManager.getInstance().post(new ProcessDefinitionsEvent(getRequestId(), result)); }