This commit is contained in:
Milos Kozak 2023-03-16 18:36:47 +01:00
parent 53c13684ea
commit 438f384c67

View file

@ -334,9 +334,9 @@ class AndroidBluetoothInterface(private val androidContext: Context) : Bluetooth
runIfScanPermissionGranted(androidContext) {
@SuppressLint("MissingPermission")
if (bluetoothAdapter!!.isDiscovering) {
if (bluetoothAdapter.isDiscovering) {
logger(LogLevel.DEBUG) { "Stopping discovery" }
bluetoothAdapter!!.cancelDiscovery()
bluetoothAdapter.cancelDiscovery()
}
}