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

Commit 7e615a52 authored by Dmitry Dementyev's avatar Dmitry Dementyev
Browse files

Add IMMUTABLE flag to AccountManager pending intents.

Bug: 174189215
Test: none
Change-Id: I11c81ce4cfb0f51a2fabf92a45d8425647df2121
parent 1599b648
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -3085,7 +3085,8 @@ public class AccountManagerService
                    .setContentTitle(title)
                    .setContentText(subtitle)
                    .setContentIntent(PendingIntent.getActivityAsUser(mContext, 0, intent,
                            PendingIntent.FLAG_CANCEL_CURRENT, null, user))
                            PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_IMMUTABLE,
                            null, user))
                    .build();
        installNotification(getCredentialPermissionNotificationId(
                account, authTokenType, uid), n, packageName, user.getIdentifier());
@@ -5307,7 +5308,8 @@ public class AccountManagerService
                        .setContentTitle(String.format(notificationTitleFormat, account.name))
                        .setContentText(message)
                        .setContentIntent(PendingIntent.getActivityAsUser(
                                mContext, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT,
                                mContext, 0, intent,
                                PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_IMMUTABLE,
                                null, new UserHandle(userId)))
                        .build();
                installNotification(id, n, packageName, userId);