private void onDone() {
    ArrayList<SocialMember> result =
        (ArrayList<SocialMember>) friendListAdapter.getSelectedFriends();

    Intent returnIntent = new Intent();
    returnIntent.putParcelableArrayListExtra(RESULT_FRIEND_LIST, result);
    getActivity().setResult(Activity.RESULT_OK, returnIntent);
    getActivity().finish();
  }
 private void refreshMenu() {
   if (doneMenuItem != null) {
     TextView doneText = (TextView) doneMenuItem.getActionView();
     doneText.setEnabled(!friendListAdapter.getSelectedFriends().isEmpty());
   }
 }