public void dismissDialog(boolean mustRemoreItem) { if (mustRemoreItem) { removeItem(position); } commonDialog.dismiss(); }
public SingleChatAdapter(Context context) { list = new ArrayList<MessageBean>(); this.context = context; commonDialog = new CommonDialog(context); commonDialog.setOnDialogClickListener(new MyOnDialogClickListener()); }