Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69e28691 authored by Charlie Boutier's avatar Charlie Boutier
Browse files

PandoraServer: support extended scanning

Bug: 332767529
Test: atest pts-bot
Flag: EXEMPT, test infra
Change-Id: I4d3062dde6473f3da4387f1c6c586aadd688a9cc
parent 2eda90f8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ import android.bluetooth.le.AdvertisingSetParameters
import android.bluetooth.le.ScanCallback
import android.bluetooth.le.ScanRecord
import android.bluetooth.le.ScanResult
import android.bluetooth.le.ScanSettings
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
@@ -789,7 +790,8 @@ class Host(
                            error("scan failed")
                        }
                    }
                bluetoothAdapter.bluetoothLeScanner.startScan(callback)
                val scanSettings = ScanSettings.Builder().setLegacy(request.legacy).build()
                bluetoothAdapter.bluetoothLeScanner.startScan(null, scanSettings, callback)

                awaitClose { bluetoothAdapter.bluetoothLeScanner.stopScan(callback) }
            }