summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Costin Manolache <costin@google.com> 2011-01-14 11:25:39 -0800
committer Costin Manolache <costin@google.com> 2011-01-14 11:26:25 -0800
commitc6684f9e9790e92960504e9b32f20f27003d9f37 (patch)
tree3dc0725571d18d4ad59006d23b30dbf7d7029cee
parentfe5be1b04273b8f67a00ac688940299f7d502c1d (diff)
Fix previous quick fix, LoginOptions is final.
Change-Id: I5f262458239378697a67cbd8e83175bf3ffc7f5b
-rw-r--r--core/java/android/accounts/AccountManagerService.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/java/android/accounts/AccountManagerService.java b/core/java/android/accounts/AccountManagerService.java
index d23aceb62c91..9cbc7be1309e 100644
--- a/core/java/android/accounts/AccountManagerService.java
+++ b/core/java/android/accounts/AccountManagerService.java
@@ -861,7 +861,7 @@ public class AccountManagerService
public void getAuthToken(IAccountManagerResponse response, final Account account,
final String authTokenType, final boolean notifyOnAuthFailure,
- final boolean expectActivityLaunch, final Bundle loginOptions) {
+ final boolean expectActivityLaunch, Bundle loginOptionsIn) {
if (Log.isLoggable(TAG, Log.VERBOSE)) {
Log.v(TAG, "getAuthToken: " + account
+ ", response " + response
@@ -888,9 +888,8 @@ public class AccountManagerService
final boolean permissionGranted = customTokens ||
permissionIsGranted(account, authTokenType, callerUid);
- if (loginOptions == null) {
- loginOptions = new Bundle();
- }
+ final Bundle loginOptions = (loginOptionsIn == null) ? new Bundle() :
+ loginOptionsIn;
if (customTokens) {
// let authenticator know the identity of the caller
loginOptions.putInt(AccountManager.KEY_CALLER_UID, callerUid);