Merge "Update Bluetooth AVRCP default version to 1.5" into rvc-d1-dev

This commit is contained in:
TreeHugger Robot
2020-05-27 05:18:46 +00:00
committed by Android (Google) Code Review

View File

@@ -63,7 +63,7 @@ public class BluetoothAvrcpVersionPreferenceController extends DeveloperOptionsP
public void updateState(Preference preference) { public void updateState(Preference preference) {
final ListPreference listPreference = (ListPreference) preference; final ListPreference listPreference = (ListPreference) preference;
final String currentValue = SystemProperties.get(BLUETOOTH_AVRCP_VERSION_PROPERTY); final String currentValue = SystemProperties.get(BLUETOOTH_AVRCP_VERSION_PROPERTY);
int index = 0; // Defaults to AVRCP 1.4 int index = 0; // Defaults to AVRCP 1.5
for (int i = 0; i < mListValues.length; i++) { for (int i = 0; i < mListValues.length; i++) {
if (TextUtils.equals(currentValue, mListValues[i])) { if (TextUtils.equals(currentValue, mListValues[i])) {
index = i; index = i;