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

Commit e6ffeb21 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Cts tests Increase wait of scan property change" into main am: 616abc73

parents 2207af2b 616abc73
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -75,11 +75,11 @@ object BlockingBluetoothAdapter {
        if (toggleScanSetting) {
            Log.d(TAG, "Allowing the scan to be perform while Bluetooth is OFF")
            Settings.Global.putInt(context.contentResolver, BLE_SCAN_ALWAYS_AVAILABLE, 1)
            for (i in 1..5) {
            for (i in 1..10) {
                if (adapter.isBleScanAlwaysAvailable()) {
                    break
                }
                Log.d(TAG, "Ble scan not yet available... Sleeping 50 ms $i/5")
                Log.d(TAG, "Ble scan not yet available... Sleeping 50 ms $i/10")
                Thread.sleep(50)
            }
            if (!adapter.isBleScanAlwaysAvailable()) {