mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-22 16:23:09 +02:00
deviceName() -> driverName()
This commit is contained in:
@@ -120,7 +120,7 @@ public class BluetoothBeurerBF700_800 extends BluetoothCommunication {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String deviceName() {
|
||||
public String driverName() {
|
||||
return "Beurer BF700/710/800 / Runtastic Libra";
|
||||
}
|
||||
|
||||
|
@@ -114,11 +114,11 @@ public abstract class BluetoothCommunication {
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the Bluetooth device name
|
||||
* Return the Bluetooth driver name
|
||||
*
|
||||
* @return a string in a human readable name
|
||||
*/
|
||||
abstract public String deviceName();
|
||||
abstract public String driverName();
|
||||
|
||||
/**
|
||||
* State machine for the initialization process of the Bluetooth device.
|
||||
|
@@ -42,7 +42,7 @@ public class BluetoothCustomOpenScale extends BluetoothCommunication {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String deviceName() {
|
||||
public String driverName() {
|
||||
return "Custom Open Scale";
|
||||
}
|
||||
|
||||
|
@@ -38,7 +38,7 @@ public class BluetoothDigooDGSO38H extends BluetoothCommunication {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String deviceName() {
|
||||
public String driverName() {
|
||||
return "Digoo DG-SO38H";
|
||||
}
|
||||
|
||||
|
@@ -41,7 +41,7 @@ public class BluetoothExcelvanCF369BLE extends BluetoothCommunication {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String deviceName() {
|
||||
public String driverName() {
|
||||
return "Excelvan CF369BLE";
|
||||
}
|
||||
|
||||
|
@@ -38,7 +38,7 @@ public class BluetoothExingtechY1 extends BluetoothCommunication {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String deviceName() {
|
||||
public String driverName() {
|
||||
return "Exingtech Y1";
|
||||
}
|
||||
|
||||
|
@@ -36,7 +36,7 @@ public class BluetoothHesley extends BluetoothCommunication {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String deviceName() {
|
||||
public String driverName() {
|
||||
return "Hesley scale";
|
||||
}
|
||||
|
||||
|
@@ -49,8 +49,7 @@ public class BluetoothIhealthHS3 extends BluetoothCommunication {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String deviceName() {
|
||||
Log.w("openscale","ihealthHS3 - DeviceName - returning iHealth HS33FA4A");
|
||||
public String driverName() {
|
||||
return "iHealth HS33FA4A";
|
||||
}
|
||||
|
||||
|
@@ -79,7 +79,7 @@ public class BluetoothMGB extends BluetoothCommunication {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String deviceName() {
|
||||
public String driverName() {
|
||||
return "SWAN";
|
||||
}
|
||||
|
||||
|
@@ -41,7 +41,7 @@ public class BluetoothMedisanaBS444 extends BluetoothCommunication {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String deviceName() {
|
||||
public String driverName() {
|
||||
return "Medisana BS444";
|
||||
}
|
||||
|
||||
|
@@ -49,7 +49,7 @@ public class BluetoothMiScale extends BluetoothCommunication {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String deviceName() {
|
||||
public String driverName() {
|
||||
return "Xiaomi Mi Scale v1";
|
||||
}
|
||||
|
||||
|
@@ -53,7 +53,7 @@ public class BluetoothMiScale2 extends BluetoothCommunication {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String deviceName() {
|
||||
public String driverName() {
|
||||
return "Xiaomi Mi Scale v2";
|
||||
}
|
||||
|
||||
|
@@ -40,7 +40,7 @@ public class BluetoothOneByone extends BluetoothCommunication {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String deviceName() {
|
||||
public String driverName() {
|
||||
return "1byone scale";
|
||||
}
|
||||
|
||||
|
@@ -114,7 +114,7 @@ public class BluetoothSanitasSbf70 extends BluetoothCommunication {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String deviceName() {
|
||||
public String driverName() {
|
||||
return "Sanitas SBF70/SilverCrest SBF75";
|
||||
}
|
||||
|
||||
|
@@ -47,7 +47,7 @@ public class BluetoothYunmaiSE_Mini extends BluetoothCommunication {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String deviceName() {
|
||||
public String driverName() {
|
||||
return isMini ? "Yunmai Mini" : "Yunmai SE";
|
||||
}
|
||||
|
||||
|
@@ -97,7 +97,7 @@ public class BluetoothPreferences extends PreferenceFragment {
|
||||
}
|
||||
});
|
||||
|
||||
// Do old school bluetooth discovery first and BLE scan afterwards
|
||||
// Do classic bluetooth discovery first and BLE scan afterwards
|
||||
btAdapter.startDiscovery();
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@ public class BluetoothPreferences extends PreferenceFragment {
|
||||
prefBtDevice.setOnPreferenceClickListener(new onClickListenerDeviceSelect());
|
||||
prefBtDevice.setKey(device.getAddress());
|
||||
prefBtDevice.setIcon(R.drawable.ic_bluetooth_connection_lost);
|
||||
prefBtDevice.setSummary(btDevice.deviceName());
|
||||
prefBtDevice.setSummary(btDevice.driverName());
|
||||
|
||||
int tintColor = new EditText(getActivity()).getCurrentTextColor();
|
||||
prefBtDevice.getIcon().setColorFilter(tintColor, PorterDuff.Mode.SRC_IN);
|
||||
|
Reference in New Issue
Block a user