public boolean loadingDialogIsShowing() { if (mLoadingDialog == null) { return false; } return mLoadingDialog.isShowing(); }
public void hideLoadingDialog() { if (mLoadingDialog != null && mLoadingDialog.isShowing()) { mLoadingDialog.dismiss(); mLoadingDialog = null; } }
public void setCancelable(boolean flag) { if (mLoadingDialog != null) { mLoadingDialog.setCancelable(flag); } }
public void showLoadingDialog() { hideLoadingDialog(); mLoadingDialog = new CommonLoadingDialog(getActivity()); mLoadingDialog.show(); }