diff --git a/res/values/arrays.xml b/res/values/arrays.xml
index 5e1a468f87b..3984c214bf7 100644
--- a/res/values/arrays.xml
+++ b/res/values/arrays.xml
@@ -316,6 +316,24 @@
- Never time out
+
+
+ - 1 (Default)
+ - 2
+ - 3
+ - 4
+ - 5
+
+
+
+
+ - 1
+ - 2
+ - 3
+ - 4
+ - 5
+
+
diff --git a/res/values/strings.xml b/res/values/strings.xml
index a05fbfcddaf..8a685e6a3f0 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -1606,6 +1606,11 @@
Don’t play custom phone ringtones on Bluetooth headsets
+
+ Maximum number of connected Bluetooth audio devices
+
+ Select maximum number of connected Bluetooth audio devices
+
Cast
diff --git a/res/xml/development_prefs.xml b/res/xml/development_prefs.xml
index bf83a5e90d8..fb73ec41d46 100644
--- a/res/xml/development_prefs.xml
+++ b/res/xml/development_prefs.xml
@@ -270,6 +270,13 @@
android:entries="@array/bluetooth_a2dp_codec_ldac_playback_quality_titles"
android:entryValues="@array/bluetooth_a2dp_codec_ldac_playback_quality_values" />
+
+
= 0) {
+ String[] titles = getResources().getStringArray(R.array.bluetooth_max_connected_audio_devices);
+ mBluetoothSelectMaxConnectedAudioDevices.setSummary(titles[index]);
+ }
+ }
+
private void writeBluetoothConfigurationOption(Preference preference,
Object newValue) {
String[] summaries;
@@ -2621,6 +2644,9 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
(preference == mBluetoothSelectA2dpLdacPlaybackQuality)) {
writeBluetoothConfigurationOption(preference, newValue);
return true;
+ } else if (preference == mBluetoothSelectMaxConnectedAudioDevices) {
+ writeBluetoothMaxConnectedAudioDevices(newValue);
+ return true;
} else if (preference == mLogdSize) {
writeLogdSizeOption(newValue);
return true;