From 1eca8141bf7cf8bf1839420ed99abd4e615e0fad Mon Sep 17 00:00:00 2001 From: Jack He Date: Thu, 7 Dec 2017 15:09:07 -0800 Subject: [PATCH] Bluetooth: Use "Disable" in-band ringing instead of "Enable" * Given that in-band ringing is enabled by default on supported devices, the corresponding development settings should be rephrased from "Enable in-band ringing" to "Disable in-band ringing" to hint that it is enabled by default * This also gets rid of special logic to check that option in initialization * Add strings to reflect this update * Modify BluetoothInbandRingingPreferenceControllerTest to reflect this change Bug: 65383086 Test: make, try toggling the preference and verify whether in-band ringing works or not, RunSettingsRoboTests Change-Id: I29f91c7d12c725b12452ec163b75051ff28f500d --- res/values/strings.xml | 5 ++++ res/xml/development_settings.xml | 6 ++--- ...oothInbandRingingPreferenceController.java | 23 +++++++++---------- ...InbandRingingPreferenceControllerTest.java | 16 ++++++------- 4 files changed, 27 insertions(+), 23 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 3dc342bc90b..be683d203b2 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -396,6 +396,11 @@ Allow device to pair and connect to bluetooth devices + + Disable in-band ringing + + Don’t play custom phone ringtones on Bluetooth headsets + Currently connected diff --git a/res/xml/development_settings.xml b/res/xml/development_settings.xml index 60efcab79cf..18aeeef9bb5 100644 --- a/res/xml/development_settings.xml +++ b/res/xml/development_settings.xml @@ -240,9 +240,9 @@ android:summary="@string/bluetooth_disable_absolute_volume_summary"/> + android:key="bluetooth_disable_inband_ringing" + android:title="@string/bluetooth_disable_inband_ringing" + android:summary="@string/bluetooth_disable_inband_ringing_summary"/>