From cc00c0de8cd1538d1e9441bffb0b73375f5e5c9e Mon Sep 17 00:00:00 2001 From: Yi-Ling Chuang Date: Wed, 13 Jan 2021 12:24:33 +0800 Subject: [PATCH] Fix the non-working bluetooth slice in the Assistant. The bluetooh slice has an inline control, which means the PendingIntent of the slice action should be mutable. Update the mutability flag to fix this issue. Fixes: 171521962 Test: Use voice command to turn on bluetooth and the bt slice should work properly. Change-Id: I488eef5c94b2bf66a67fb97b4102d5da2971bf04 --- src/com/android/settings/bluetooth/BluetoothSliceBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/settings/bluetooth/BluetoothSliceBuilder.java b/src/com/android/settings/bluetooth/BluetoothSliceBuilder.java index 67c365007f3..b09d180dd87 100644 --- a/src/com/android/settings/bluetooth/BluetoothSliceBuilder.java +++ b/src/com/android/settings/bluetooth/BluetoothSliceBuilder.java @@ -136,6 +136,6 @@ public class BluetoothSliceBuilder { final Intent intent = new Intent(ACTION_BLUETOOTH_SLICE_CHANGED) .setClass(context, SliceBroadcastReceiver.class); return PendingIntent.getBroadcast(context, 0 /* requestCode */, intent, - PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE); + PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_MUTABLE); } }