Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ec17366 authored by Costin Manolache's avatar Costin Manolache
Browse files

Add back NEW_TASK flag.

b/2510486 suggests we remove it, but this breaks services who can't call the intent without the flag. A different solution is needed to notify when the activity is done.

Change-Id: I0b32ead69cf816e105899fdd74e99cc1e8bf5ce3
parent f90633a0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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)));