|
@@ -94,14 +94,7 @@ public class AccountAuthenticator extends AbstractAccountAuthenticator {
|
|
|
return e.getFailureBundle();
|
|
|
}
|
|
|
|
|
|
- Intent intent;
|
|
|
- if (!mContext.getResources().getBoolean(R.bool.push_enabled) &&
|
|
|
- !mContext.getResources().getBoolean(R.bool.analytics_enabled)) {
|
|
|
- intent = new Intent(mContext, AuthenticatorActivity.class);
|
|
|
- } else {
|
|
|
- intent = new Intent(mContext, ModifiedAuthenticatorActivity.class);
|
|
|
- }
|
|
|
-
|
|
|
+ Intent intent = new Intent(mContext, AuthenticatorActivity.class);
|
|
|
intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response);
|
|
|
intent.putExtra(KEY_AUTH_TOKEN_TYPE, authTokenType);
|
|
|
intent.putExtra(KEY_REQUIRED_FEATURES, requiredFeatures);
|
|
@@ -145,14 +138,7 @@ public class AccountAuthenticator extends AbstractAccountAuthenticator {
|
|
|
return e.getFailureBundle();
|
|
|
}
|
|
|
|
|
|
- Intent intent;
|
|
|
- if (!mContext.getResources().getBoolean(R.bool.push_enabled)
|
|
|
- && !mContext.getResources().getBoolean(R.bool.analytics_enabled)) {
|
|
|
- intent = new Intent(mContext, AuthenticatorActivity.class);
|
|
|
- } else {
|
|
|
- intent = new Intent(mContext, ModifiedAuthenticatorActivity.class);
|
|
|
- }
|
|
|
-
|
|
|
+ Intent intent = new Intent(mContext, AuthenticatorActivity.class);
|
|
|
intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE,
|
|
|
response);
|
|
|
intent.putExtra(KEY_ACCOUNT, account);
|
|
@@ -203,13 +189,7 @@ public class AccountAuthenticator extends AbstractAccountAuthenticator {
|
|
|
}
|
|
|
|
|
|
/// if not stored, return Intent to access the AuthenticatorActivity and UPDATE the token for the account
|
|
|
- Intent intent;
|
|
|
- if (!mContext.getResources().getBoolean(R.bool.push_enabled)
|
|
|
- && !mContext.getResources().getBoolean(R.bool.analytics_enabled)) {
|
|
|
- intent = new Intent(mContext, AuthenticatorActivity.class);
|
|
|
- } else {
|
|
|
- intent = new Intent(mContext, ModifiedAuthenticatorActivity.class);
|
|
|
- }
|
|
|
+ Intent intent = new Intent(mContext, AuthenticatorActivity.class);
|
|
|
intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response);
|
|
|
intent.putExtra(KEY_AUTH_TOKEN_TYPE, authTokenType);
|
|
|
intent.putExtra(KEY_LOGIN_OPTIONS, options);
|
|
@@ -240,13 +220,7 @@ public class AccountAuthenticator extends AbstractAccountAuthenticator {
|
|
|
Account account, String authTokenType, Bundle options)
|
|
|
throws NetworkErrorException {
|
|
|
|
|
|
- Intent intent;
|
|
|
- if (!mContext.getResources().getBoolean(R.bool.push_enabled) &&
|
|
|
- !mContext.getResources().getBoolean(R.bool.analytics_enabled)) {
|
|
|
- intent = new Intent(mContext, AuthenticatorActivity.class);
|
|
|
- } else {
|
|
|
- intent = new Intent(mContext, ModifiedAuthenticatorActivity.class);
|
|
|
- }
|
|
|
+ Intent intent = new Intent(mContext, AuthenticatorActivity.class);
|
|
|
intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response);
|
|
|
intent.putExtra(KEY_ACCOUNT, account);
|
|
|
intent.putExtra(KEY_AUTH_TOKEN_TYPE, authTokenType);
|