From 4bf2618146055ea050969914384cb4d091a35c29 Mon Sep 17 00:00:00 2001 From: Ashwini Oruganti Date: Mon, 23 Nov 2020 12:01:56 -0800 Subject: [PATCH] NotificationAdjustmentExtractorTest: Mark unaudited PendingIntents with FLAG_MUTABLE_UNAUDITED These PIs need an explicit mutability flag. This temporay flag is being used to mark these points in code and should be replaced ASAP. See go/immutable-pendingintents for more context. Bug: 160794467 Test: TH Exempt-From-Owner-Approval: noop change Change-Id: Ie87153ca5c60df34a302175e6a02b49225f3599f --- .../notification/NotificationAdjustmentExtractorTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/tests/uiservicestests/src/com/android/server/notification/NotificationAdjustmentExtractorTest.java b/services/tests/uiservicestests/src/com/android/server/notification/NotificationAdjustmentExtractorTest.java index e658d179f4f37..824c05e4ae47e 100644 --- a/services/tests/uiservicestests/src/com/android/server/notification/NotificationAdjustmentExtractorTest.java +++ b/services/tests/uiservicestests/src/com/android/server/notification/NotificationAdjustmentExtractorTest.java @@ -126,6 +126,7 @@ public class NotificationAdjustmentExtractorTest extends UiServiceTestCase { return new Notification.Action.Builder( Icon.createWithResource(getContext(), android.R.drawable.sym_def_app_icon), "action", - PendingIntent.getBroadcast(getContext(), 0, new Intent("Action"), 0)).build(); + PendingIntent.getBroadcast(getContext(), 0, new Intent("Action"), + PendingIntent.FLAG_MUTABLE_UNAUDITED)).build(); } }