kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
refactor Bluetooth scan API preference
rodzic
d74c5b6ec9
commit
0fc00b0468
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue