@Override public void onErrorResponse(VolleyError error, Object deliverParam) { if (isDestroy(error)) { return; } mPopup.dismiss(); mPopup.show( PopupType.ALERT, mContext.getString(R.string.fail_retry), Setting.getErrorMessage(error, mContext), new OnPopupClickListener() { @Override public void OnNegative() { mCancelExitListener.onCancel(null); } @Override public void OnPositive() { mListView.removeCallbacks(mRunGetItems); mListView.post(mRunGetItems); } }, mContext.getString(R.string.ok), mContext.getString(R.string.cancel), false); }
@Override public void onErrorResponse(VolleyError error, Object deliverParam) { if (isInValidCheck(error)) { return; } mPopup.dismissWiat(); mPopup.show( PopupType.ALERT, getString(R.string.fail_retry), Setting.getErrorMessage(error, mContext), popupFail, getString(R.string.ok), getString(R.string.cancel)); }