Apparently having setReportDelay(0) makes the BLE scanner shit its pants

This commit is contained in:
Electric1447
2021-08-19 22:25:13 +03:00
parent a31398101f
commit 4f7586909a
@@ -118,7 +118,7 @@ public class PodsService extends Service {
List<ScanFilter> filters = getScanFilters();
ScanSettings settings = new ScanSettings.Builder()
.setScanMode(prefs.getBoolean("batterySaver", false) ? ScanSettings.SCAN_MODE_LOW_POWER : ScanSettings.SCAN_MODE_LOW_LATENCY)
.setReportDelay(0)
.setReportDelay(1)
.build();
btScanner.startScan(filters, settings, new ScanCallback() {