feature():1.取消要求java8进行编译 2.初始化的时候不启动蓝牙扫描使能

This commit is contained in:
lvwang2002 2024-04-30 03:24:19 +08:00
parent 366b41d716
commit a7a77d34a9
2 changed files with 8 additions and 8 deletions

View File

@ -65,10 +65,10 @@ android {
disable "GradleCompatible"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
// compileOptions {
// sourceCompatibility JavaVersion.VERSION_1_8
// targetCompatibility JavaVersion.VERSION_1_8
// }
}
repositories {

View File

@ -443,11 +443,11 @@ public class BleDeviceManager {
// mDiscoverListener = discoverListener;
if (mClassicDeviceManager != null) {
mClassicDeviceManager.stopScan();
}
// if (mClassicDeviceManager != null) {
// mClassicDeviceManager.stopScan();
// }
mBleScanEnable = true;
mBleScanEnable = false;
if (mHeartTimer != null) {
return;
}