1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-28 10:40:47 +02:00

fixed Beurer BF700/800 device name comparison

update internal openScale version code to 21
This commit is contained in:
OliE
2017-12-17 17:52:42 +01:00
parent 49b92c341b
commit f465e4e8d9
2 changed files with 3 additions and 3 deletions

View File

@@ -7,8 +7,8 @@ android {
applicationId "com.health.openscale"
minSdkVersion 18
targetSdkVersion 22 // don't set target sdk > 22 otherwise bluetooth le discovery need permission to ACCESS_COARSE_LOCATION
versionCode 20
versionName "1.6.1"
versionCode 21
versionName "1.6.2"
}
lintOptions {

View File

@@ -125,7 +125,7 @@ public class BluetoothBeurerBF700_800 extends BluetoothCommunication {
@Override
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;
}