Merge "Add IMMUTABLE flag to AccountManager pending intents." into rvc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
501a44ccfb
@@ -3071,7 +3071,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());
|
||||
@@ -5293,7 +5294,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);
|
||||
|
||||
Reference in New Issue
Block a user