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" disable "GradleCompatible"
} }
compileOptions { // compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8 // sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8 // targetCompatibility JavaVersion.VERSION_1_8
} // }
} }
repositories { repositories {

View File

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