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

Commit 616abc73 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Cts tests Increase wait of scan property change" into main

parents 158c2f3c c09abd4d
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()) {