summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiranda Kephart <mkephart@google.com>2021-03-04 15:27:25 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-03-04 15:27:25 +0000
commit9c62f07486cb9a0ab02a1f67cb41fcdfc039708e (patch)
treed10159a92cb756ba0dd2683fa4ce48b185aff3fe
parent5fa6de7421707721e1864dd350c1d88d04a0c879 (diff)
parent1eecc874b6bda42a5a191684704e3bf424cf47da (diff)
downloadbase-9c62f07486cb9a0ab02a1f67cb41fcdfc039708e.tar.gz
Merge "[DO NOT MERGE] Make screenshot error notification PendingIntent immutable" into rvc-dev
-rw-r--r--packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotNotificationsController.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotNotificationsController.java b/packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotNotificationsController.java
index 42dde4064a97..b8a468e0ce45 100644
--- a/packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotNotificationsController.java
+++ b/packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotNotificationsController.java
@@ -252,7 +252,7 @@ public class ScreenshotNotificationsController {
dpm.createAdminSupportIntent(DevicePolicyManager.POLICY_DISABLE_SCREEN_CAPTURE);
if (intent != null) {
final PendingIntent pendingIntent = PendingIntent.getActivityAsUser(
- mContext, 0, intent, 0, null, UserHandle.CURRENT);
+ mContext, 0, intent, PendingIntent.FLAG_IMMUTABLE, null, UserHandle.CURRENT);
b.setContentIntent(pendingIntent);
}