Low latency scan mode by default for better user experience.

This commit is contained in:
darken
2022-01-09 17:51:59 +01:00
parent 1e47188eb4
commit b0e184f5d8
2 changed files with 2 additions and 2 deletions
@@ -28,7 +28,7 @@ class BleScanner @Inject constructor(
fun scan(
filter: Set<ScanFilter> = ProximityPairing.getBleScanFilter(),
mode: Int = ScanSettings.SCAN_MODE_BALANCED,
mode: Int = ScanSettings.SCAN_MODE_LOW_LATENCY,
): Flow<List<BleScanResult>> = callbackFlow {
val adapter = bluetoothManager.adapter
val scanner = bluetoothManager.scanner
@@ -29,7 +29,7 @@ class GeneralSettings @Inject constructor(
val scannerMode = preferences.createFlowPreference(
"core.scanner.mode",
ScannerMode.BALANCED,
ScannerMode.LOW_LATENCY,
moshi
)