@Override public void onSuccess(Operation opr) { if (opr.getId() == Operation.OperationCode.FORGOT_PASSWORD.ordinal()) { if (mProgressDialog != null) mProgressDialog.dismiss(); Intent intent = new Intent(ForgotPwdAuthorizationActivity.this, ForgotPwdResultActivity.class); startActivity(intent); } }
@Override public void onProgress(Operation opr) { if (opr.getId() == Operation.OperationCode.FORGOT_PASSWORD.ordinal()) { if (mProgressDialog == null) { mProgressDialog = new CustomProgressDialog(this, ""); } mProgressDialog.show(); } }
@Override public void onError(Operation opr) { if (opr.getId() == Operation.OperationCode.FORGOT_PASSWORD.ordinal()) { if (mProgressDialog != null) mProgressDialog.dismiss(); Toast.makeText( this, getResources().getString(R.string.updating_password_error) + opr.getInformation(), Toast.LENGTH_SHORT) .show(); } }