[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());
|
getWorker().getActiveLocalMediaController().getPackageName());
|
||||||
|
|
||||||
pi = PendingIntent.getBroadcast(context, 0 /* requestCode */, intent,
|
pi = PendingIntent.getBroadcast(context, 0 /* requestCode */, intent,
|
||||||
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_MUTABLE);
|
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);
|
||||||
} else {
|
} else {
|
||||||
final CachedBluetoothDevice bluetoothDevice =
|
final CachedBluetoothDevice bluetoothDevice =
|
||||||
((BluetoothMediaDevice) mMediaDevice).getCachedDevice();
|
((BluetoothMediaDevice) mMediaDevice).getCachedDevice();
|
||||||
@@ -135,7 +135,7 @@ public class MediaVolumePreferenceController extends VolumeSeekBarPreferenceCont
|
|||||||
bluetoothDevice.getAddress());
|
bluetoothDevice.getAddress());
|
||||||
|
|
||||||
pi = PendingIntent.getActivity(context, 0 /* requestCode */, intent,
|
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);
|
final IconCompat icon = getBroadcastIcon(context);
|
||||||
|
Reference in New Issue
Block a user