示例#1
0
 @Override
 public WaitDialog showWaitDialog(String message) {
   if (_isVisible) {
     if (_waitDialog == null) {
       _waitDialog = DialogHelper.getCancelableWaitDialog(this, message);
     }
     if (_waitDialog != null) {
       _waitDialog.setMessage(message);
       _waitDialog.show();
     }
     return _waitDialog;
   }
   return null;
 }
示例#2
0
 @Override
 public void hideWaitDialog() {
   if (_isVisible && _waitDialog != null) {
     try {
       _waitDialog.dismiss();
       _waitDialog = null;
     } catch (Exception ex) {
       ex.printStackTrace();
     }
   }
 }