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:
@@ -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 {
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user