Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
change the method name "getValue
Browse files Browse the repository at this point in the history
  • Loading branch information
khushaliparmar authored Oct 15, 2023
1 parent 0a36007 commit 41d9bc2
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public BluetoothLeSensorPreference(Context context) {
private String value;
private boolean valueSet = false;

public String getValue() {
public String getData() {
return value;
}

Expand All @@ -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();
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 41d9bc2

Please sign in to comment.