mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-28 18:49:56 +02:00
fixed Beurer BF700/800 device name comparison
update internal openScale version code to 21
This commit is contained in:
@@ -7,8 +7,8 @@ android {
|
|||||||
applicationId "com.health.openscale"
|
applicationId "com.health.openscale"
|
||||||
minSdkVersion 18
|
minSdkVersion 18
|
||||||
targetSdkVersion 22 // don't set target sdk > 22 otherwise bluetooth le discovery need permission to ACCESS_COARSE_LOCATION
|
targetSdkVersion 22 // don't set target sdk > 22 otherwise bluetooth le discovery need permission to ACCESS_COARSE_LOCATION
|
||||||
versionCode 20
|
versionCode 21
|
||||||
versionName "1.6.1"
|
versionName "1.6.2"
|
||||||
}
|
}
|
||||||
|
|
||||||
lintOptions {
|
lintOptions {
|
||||||
|
@@ -125,7 +125,7 @@ public class BluetoothBeurerBF700_800 extends BluetoothCommunication {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean checkDeviceName(String btDeviceName) {
|
public boolean checkDeviceName(String btDeviceName) {
|
||||||
if (btDeviceName.startsWith("BEURER BF700") || btDeviceName.startsWith("BEURER BF800")) {
|
if (btDeviceName.toLowerCase().equals(new String("BEURER BF700").toLowerCase()) || btDeviceName.toLowerCase().equals(new String("BEURER BF800").toLowerCase())) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user