AccessibilityManagerTest: Add FLAG_IMMUTABLE to PIs

Fixes: 176897320
Test: this
Change-Id: I7fd3dacc493fd14be5ca495ec16002b2bb7b1163
This commit is contained in:
Ashwini Oruganti
2021-01-06 20:39:45 +00:00
parent 1be37ac5ea
commit b360f29baf

View File

@@ -64,7 +64,8 @@ public class AccessibilityManagerTest {
private static final String INTENT_ACTION = "TESTACTION";
private static final String DESCRIPTION = "description";
private static final PendingIntent TEST_PENDING_INTENT = PendingIntent.getBroadcast(
InstrumentationRegistry.getTargetContext(), 0, new Intent(INTENT_ACTION), 0);
InstrumentationRegistry.getTargetContext(), 0, new Intent(INTENT_ACTION),
PendingIntent.FLAG_IMMUTABLE);
private static final RemoteAction TEST_ACTION = new RemoteAction(
Icon.createWithContentUri("content://test"),
LABEL,