private void initUIWithData() {
   groupNameEditText.setText(groupDialog.getName());
   participantsTextView.setText(
       getString(R.string.gdd_participants, groupDialog.getOccupantsCount()));
   //        onlineParticipantsTextView.setText(getString(R.string.gdd_online_participants,
   //                groupDialog.getOnlineOccupantsCount(), groupDialog.getOccupantsCount()));
   if (!isNeedUpdateAvatar) {
     loadAvatar(groupDialog.getPhotoUrl());
   }
   updateOldGroupData();
 }
 @Override
 public boolean dispatchKeyEvent(KeyEvent event) {
   if (actionMode != null && event.getKeyCode() == KeyEvent.KEYCODE_BACK) {
     groupNameEditText.setText(groupDialog.getName());
     closeActionMode = true;
     ((ActionMode) actionMode).finish();
     return true;
   } else {
     closeActionMode = false;
   }
   return super.dispatchKeyEvent(event);
 }
 private void updateOldGroupData() {
   groupNameOld = groupDialog.getName();
   photoUrlOld = groupDialog.getPhotoUrl();
 }
 protected GroupDialogOccupantsAdapter getFriendsAdapter() {
   if (dialogCurrent.getType() == QBDialogType.PUBLIC_GROUP)
     return new GroupDialogOccupantsAdapter(this, ChatUtils.getJoinUsers());
   else return new GroupDialogOccupantsAdapter(this, groupDialog.getOccupantList());
 }
 private void startLoadGroupDialog() {
   if (dialogCurrent.getType() == QBDialogType.PUBLIC_GROUP) initListView();
   else QBLoadGroupDialogCommand.start(this, dialogCurrent, groupDialog.getRoomJid());
 }