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

This commit is contained in:
Treehugger Robot
2017-03-25 00:58:13 +00:00
committed by Gerrit Code Review

View File

@@ -1789,7 +1789,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]);