/** * 弹出对话框 * * @param title * @param msg * @param btns * @param callBack * @param isCanCancelabel * @param isDismiss * @return */ public Dialog showAlertDialog( String title, String msg, String[] btns, DialogCallBack callBack, boolean isCanCancelabel, boolean isDismiss) { if (dialog == null || !dialog.isShowing()) { dialog = DialogMaker.showCommonAlerttDialog( context, title, msg, btns, callBack, isCanCancelabel, isDismiss); } return dialog; }
/** * 等待对话框 * * @param msg * @param isCanCancelabel * @param tag * @return */ public Dialog showWaitDialog(String msg, boolean isCanCancelabel, Object tag) { if (dialog == null || !dialog.isShowing()) { dialog = DialogMaker.showCommentWaitDialog(context, msg, null, isCanCancelabel, tag); } return dialog; }