mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor Bluetooth scan API preference
This commit is contained in:
parent
d74c5b6ec9
commit
0fc00b0468
1 changed files with 2 additions and 1 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue