@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; }
@Override public void hideWaitDialog() { if (_isVisible && _waitDialog != null) { try { _waitDialog.dismiss(); _waitDialog = null; } catch (Exception ex) { ex.printStackTrace(); } } }