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
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user