code: boolean parseSignInResult(int requestCode, int resultCode, Intent intent) {
          if (requestCode == errorResolutionRequestCode) {
              resolvingError = false;
              if (resultCode == Activity.RESULT_OK) {
                  connectAndRequestGoogleAccount(signInRequestCode, errorResolutionRequestCode);
              }
              return true;
          } else if (requestCode == signInRequestCode) {
              if (resultCode == Activity.RESULT_OK) {
                  final GoogleSignInResult result = Auth.GoogleSignInApi.getSignInResultFromIntent(intent);
                  if (result.isSuccess()) {
                      googleCallback.onSuccess(result.getSignInAccount());
                  } else if (result.getStatus().isCanceled()) {
                      googleCallback.onCancel();
                  }
              }
              return true;
          }
  
          return false;
      }
docs: Given the data received in the activity.onActivityResult() call, tries to parse the
  content to figure out if it's an error resolution result or a sign up result.
  
  @param requestCode request code received
  @param resultCode  result code received
  @param intent      intent received
  @return whether the data was handled by this provider or not.