Merge "Add default value to Bluetooth AVRCP version property get"

This commit is contained in:
TreeHugger Robot
2017-03-23 03:03:48 +00:00
committed by Android (Google) Code Review

View File

@@ -1794,7 +1794,7 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
// Init the AVRCP Version - Default
values = getResources().getStringArray(R.array.bluetooth_avrcp_version_values);
summaries = getResources().getStringArray(R.array.bluetooth_avrcp_versions);
String value = SystemProperties.get(BLUETOOTH_AVRCP_VERSION_PROPERTY);
String value = SystemProperties.get(BLUETOOTH_AVRCP_VERSION_PROPERTY, values[0]);
index = mBluetoothSelectAvrcpVersion.findIndexOfValue(value);
mBluetoothSelectAvrcpVersion.setValue(values[index]);
mBluetoothSelectAvrcpVersion.setSummary(summaries[index]);