[DO NOT MERGE] Make screenshot error notification PendingIntent immutable am: 87adff6976
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13519314 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I099125bcee80fb668c0f4a222247b318c699cb38
This commit is contained in:
@@ -252,7 +252,7 @@ public class ScreenshotNotificationsController {
|
|||||||
dpm.createAdminSupportIntent(DevicePolicyManager.POLICY_DISABLE_SCREEN_CAPTURE);
|
dpm.createAdminSupportIntent(DevicePolicyManager.POLICY_DISABLE_SCREEN_CAPTURE);
|
||||||
if (intent != null) {
|
if (intent != null) {
|
||||||
final PendingIntent pendingIntent = PendingIntent.getActivityAsUser(
|
final PendingIntent pendingIntent = PendingIntent.getActivityAsUser(
|
||||||
mContext, 0, intent, 0, null, UserHandle.CURRENT);
|
mContext, 0, intent, PendingIntent.FLAG_IMMUTABLE, null, UserHandle.CURRENT);
|
||||||
b.setContentIntent(pendingIntent);
|
b.setContentIntent(pendingIntent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user