mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-03-30 19:54:27 -04:00
refactor Bluetooth scan API preference
This commit is contained in:
@@ -280,7 +280,8 @@ class BTScanModel @Inject constructor(
|
||||
.launchIn(CoroutineScope(Dispatchers.Main))
|
||||
|
||||
if (hasBluetoothPermission) {
|
||||
if (hasCompanionDeviceApi) startCompanionScan() else startClassicScan()
|
||||
if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.S && hasCompanionDeviceApi)
|
||||
startCompanionScan() else startClassicScan()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user