コード例 #1
0
  @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);
    }
  }
コード例 #2
0
  @Override
  public void onProgress(Operation opr) {

    if (opr.getId() == Operation.OperationCode.FORGOT_PASSWORD.ordinal()) {
      if (mProgressDialog == null) {
        mProgressDialog = new CustomProgressDialog(this, "");
      }
      mProgressDialog.show();
    }
  }
コード例 #3
0
 @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();
   }
 }