- @Override
- public void onGetDataShareWithFinish(RemoteOperationResult result) {
- // Remove loading
- ((ShareActivity) getActivity()).dismissWaitingLoadDialog();
- if (result != null && result.isSuccess()) {
- // update local database
- for(Object obj: result.getData()) {
- if ( ((OCShare) obj).getShareType() == ShareType.USER ||
- ((OCShare) obj).getShareType() == ShareType.GROUP ){
- mShares.add((OCShare) obj);
- }
- }
-
- // Update list of users/groups
- mUserGroupsAdapter = new ShareUserListAdapter(getActivity().getApplicationContext(),
- R.layout.share_user_item, mShares);