[RESTRICT AUTOMERGE] Change the intent flag to immutable
Bug: 256590210 Test: make RunSettingsRoboTests ROBOTEST_FILTER=MediaVolumePreferenceControllerTest Change-Id: I68132f863027fab19351b4fdbc363e5c274e3327 Merged-In: I68132f863027fab19351b4fdbc363e5c274e3327
This commit is contained in:
@@ -120,7 +120,7 @@ public class MediaVolumePreferenceController extends VolumeSeekBarPreferenceCont
|
||||
getWorker().getActiveLocalMediaController().getPackageName());
|
||||
|
||||
pi = PendingIntent.getBroadcast(context, 0 /* requestCode */, intent,
|
||||
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_MUTABLE);
|
||||
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);
|
||||
} else {
|
||||
final CachedBluetoothDevice bluetoothDevice =
|
||||
((BluetoothMediaDevice) mMediaDevice).getCachedDevice();
|
||||
@@ -135,7 +135,7 @@ public class MediaVolumePreferenceController extends VolumeSeekBarPreferenceCont
|
||||
bluetoothDevice.getAddress());
|
||||
|
||||
pi = PendingIntent.getActivity(context, 0 /* requestCode */, intent,
|
||||
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_MUTABLE);
|
||||
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);
|
||||
}
|
||||
|
||||
final IconCompat icon = getBroadcastIcon(context);
|
||||
|
Reference in New Issue
Block a user