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

Commit e5643c0b authored by Himanshu Rawat's avatar Himanshu Rawat Committed by Automerger Merge Worker
Browse files

Remove all bonded devices in test setup am: c1563865

parents 9be105e5 c1563865
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -174,12 +174,9 @@ public class PairingTest {
        mRemoteLeDevice =
                sAdapter.getRemoteLeDevice(
                        Utils.BUMBLE_RANDOM_ADDRESS, BluetoothDevice.ADDRESS_TYPE_RANDOM);
        Set<BluetoothDevice> bondedDevices = sAdapter.getBondedDevices();
        if (bondedDevices.contains(mBumbleDevice)) {
            removeBond(mBumbleDevice);
        }
        if (bondedDevices.contains(mRemoteLeDevice)) {
            removeBond(mRemoteLeDevice);

        for (BluetoothDevice device : sAdapter.getBondedDevices()) {
            removeBond(device);
        }
    }