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

am: 84cf0b2a4b

Change-Id: I21a5388ee633edb4f7b59a61390b71ea59df7205
This commit is contained in:
Ajay Panicker
2017-03-25 01:00:51 +00:00
committed by android-build-merger

View File

@@ -1789,7 +1789,7 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
// Init the AVRCP Version - Default // Init the AVRCP Version - Default
values = getResources().getStringArray(R.array.bluetooth_avrcp_version_values); values = getResources().getStringArray(R.array.bluetooth_avrcp_version_values);
summaries = getResources().getStringArray(R.array.bluetooth_avrcp_versions); 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); index = mBluetoothSelectAvrcpVersion.findIndexOfValue(value);
mBluetoothSelectAvrcpVersion.setValue(values[index]); mBluetoothSelectAvrcpVersion.setValue(values[index]);
mBluetoothSelectAvrcpVersion.setSummary(summaries[index]); mBluetoothSelectAvrcpVersion.setSummary(summaries[index]);