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