/** * Sends the result or a Constants.ERROR_CODE_CANCELED error if a result isn't present. */ @Override public void finish() { if (accountAuthenticatorResponse != null) { // send the result bundle back if set, otherwise send an error. if (resultBundle != null) { accountAuthenticatorResponse.onResult(resultBundle); } else { accountAuthenticatorResponse.onError(AccountManager.ERROR_CODE_CANCELED, "canceled"); } accountAuthenticatorResponse = null; } super.finish(); } }
@Override public void finish() { if (mAccountAuthenticatorResponse != null) { // send the result bundle back if set, otherwise send an error. if (mResultBundle != null) { mAccountAuthenticatorResponse.onResult(mResultBundle); } else { mAccountAuthenticatorResponse.onError(AccountManager.ERROR_CODE_CANCELED, "canceled"); } mAccountAuthenticatorResponse = null; } super.finish(); }
/** Clean up the account authenticator stuff, see {@link AccountAuthenticatorActivity} */ @Override public void finish() { if (authenticatorResponse != null) { if (resultBundle != null) { authenticatorResponse.onResult(resultBundle); } else { authenticatorResponse.onError(AccountManager.ERROR_CODE_CANCELED, "canceled"); } authenticatorResponse = null; } super.finish(); }
/** * Sends the result or a Constants.ERROR_CODE_CANCELED error if a result isn't present. */ public void finish() { if (mAccountAuthenticatorResponse != null) { // send the result bundle back if set, otherwise send an error. if (mResultBundle != null) { mAccountAuthenticatorResponse.onResult(mResultBundle); } else { mAccountAuthenticatorResponse.onError(AccountManager.ERROR_CODE_CANCELED, "canceled"); } mAccountAuthenticatorResponse = null; } super.finish(); } }
/** * Sends the result or a GithubConstants.ERROR_CODE_CANCELED error if a result isn't present. */ @Override public void finish() { if (mAccountAuthenticatorResponse != null) { // send the result bundle back if set, otherwise send an error. if (mResultBundle != null) { mAccountAuthenticatorResponse.onResult(mResultBundle); } else { mAccountAuthenticatorResponse.onError(AccountManager.ERROR_CODE_CANCELED, "canceled"); } mAccountAuthenticatorResponse = null; } super.finish(); }
/** * Sends the result or a Constants.ERROR_CODE_CANCELED error if a result isn't present. */ public void finish() { if (mAccountAuthenticatorResponse != null) { // send the result bundle back if set, otherwise send an error. if (mResultBundle != null) { mAccountAuthenticatorResponse.onResult(mResultBundle); } else { mAccountAuthenticatorResponse.onError(AccountManager.ERROR_CODE_CANCELED, "canceled"); } mAccountAuthenticatorResponse = null; } super.finish(); } }
/** * Sends the result or a Constants.ERROR_CODE_CANCELED error if a result isn't present. */ public void finish() { if (mAccountAuthenticatorResponse != null) { // send the result bundle back if set, otherwise send an error. if (mResultBundle != null) { mAccountAuthenticatorResponse.onResult(mResultBundle); } else { mAccountAuthenticatorResponse.onError(AccountManager.ERROR_CODE_CANCELED, "canceled"); } mAccountAuthenticatorResponse = null; } super.finish(); }
/** * Sends the result or a Constants.ERROR_CODE_CANCELED error if a result isn't present. */ @Override public void finish() { if (mAccountAuthenticatorResponse != null) { // send the result bundle back if set, otherwise send an error. if (mResultBundle != null) { mAccountAuthenticatorResponse.onResult(mResultBundle); } else { mAccountAuthenticatorResponse.onError(AccountManager.ERROR_CODE_CANCELED, "canceled"); } mAccountAuthenticatorResponse = null; } super.finish(); } }
state.authenticatorResponse.onError(AccountManager.ERROR_CODE_CANCELED, "canceled");