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

Commit a0587fc6 authored by William Escande's avatar William Escande
Browse files

Pandora: remove delay

Now that we listen on the correct state off, we should not have race
condition anymore when doing factoryReset

Bug: 234892968
Test: None
Flag: TEST_ONLY
Change-Id: I3e923a4423329e29581d816d83681d54c68e85b2
parent b43bbd06
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -155,9 +155,6 @@ class Host(
            stateFlow.filter { it == BluetoothAdapter.STATE_OFF }.first()
        }

        // TODO: b/234892968
        delay(3000L)

        bluetoothAdapter.enable()
        stateFlow.filter { it == BluetoothAdapter.STATE_ON }.first()
    }