Example #1
0
 public void showNotifyMessage(String msg) {
   mHandler.removeCallbacks(mTimeoutTask);
   mHandler.removeCallbacks(mNoResponseTask);
   if (mLoadDialogView == null) showLoadingPage();
   if (!mLoadDialogView.isShowing()) mLoadDialogView.ShowDialog();
   mLoadDialogView.showNotifyMsg(msg);
   if (mPageContent != null && mPageContent.getVisibility() == View.VISIBLE) {
     mHandler.postDelayed(
         new Runnable() {
           @Override
           public void run() {
             hideloadingPage();
           }
         },
         1000);
   } else {
     mLoadDialogView.setCancelable(true);
   }
 }