summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Costin Manolache <costin@google.com> 2011-01-18 14:37:24 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2011-01-18 14:37:24 -0800
commitb8b671df4778d98d00267566ed129f734bbe13a3 (patch)
tree7d97bf0c3b122841c69bd0050593b5ff27907f24
parent0e5f4e549bec3bf998e1db3af47ccb353c31ff63 (diff)
parent9ec17366c17efd14c643ee88fa1132ab05197349 (diff)
Merge "Add back NEW_TASK flag." into honeycomb
-rw-r--r--core/java/android/accounts/AccountManagerService.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/accounts/AccountManagerService.java b/core/java/android/accounts/AccountManagerService.java
index 9cbc7be1309e..e6eaf71634aa 100644
--- a/core/java/android/accounts/AccountManagerService.java
+++ b/core/java/android/accounts/AccountManagerService.java
@@ -1019,6 +1019,10 @@ public class AccountManagerService
AccountAuthenticatorResponse response, String authTokenType, String authTokenLabel) {
Intent intent = new Intent(mContext, GrantCredentialsPermissionActivity.class);
+ // See FLAT_ACTIVITY_NEW_TASK docs for limitations and benefits of the flag.
+ // Since it was set in Eclair+ we can't change it without breaking apps using
+ // the intent from a non-Activity context.
+ intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.addCategory(
String.valueOf(getCredentialPermissionNotificationId(account, authTokenType, uid)));