diff --git a/src/main/java/de/dennisguse/opentracks/settings/bluetooth/BluetoothLeSensorPreference.java b/src/main/java/de/dennisguse/opentracks/settings/bluetooth/BluetoothLeSensorPreference.java index fc0ed34ef..67bf409e8 100644 --- a/src/main/java/de/dennisguse/opentracks/settings/bluetooth/BluetoothLeSensorPreference.java +++ b/src/main/java/de/dennisguse/opentracks/settings/bluetooth/BluetoothLeSensorPreference.java @@ -62,7 +62,7 @@ public BluetoothLeSensorPreference(Context context) { private String value; private boolean valueSet = false; - public String getValue() { + public String getData() { return value; } @@ -85,11 +85,11 @@ protected void onSetInitialValue(Object defaultValue) { @Override public CharSequence getSummary() { - if (getValue() == null || PreferencesUtils.isBluetoothSensorAddressNone(getValue())) { + if (getData() == null || PreferencesUtils.isBluetoothSensorAddressNone(getData())) { return getContext().getString(DEVICE_NONE_RESOURCEID); } - return getValue(); + return getData(); } public abstract PreferenceDialogFragmentCompat createInstance(); @@ -192,9 +192,9 @@ private void startBluetoothScan() { selectedEntryIndex = 0; BluetoothLeSensorPreference preference = (BluetoothLeSensorPreference) getPreference(); - String deviceSelected = preference.getValue(); + String deviceSelected = preference.getData(); if (deviceSelected != null && !deviceNone.equals(deviceSelected)) { - listAdapter.add(preference.getValue(), preference.getValue()); + listAdapter.add(preference.getData(), preference.getData()); selectedEntryIndex = 1; }