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

Commit 5f43e0e5 authored by Omair Kamil's avatar Omair Kamil
Browse files

Fix check for maximum extended advertising events in BluetoothLeAdvertiser.

Bug: 354743237
Fix: 354743237
Flag: EXEMPT, obvious typo
Test: atest BluetoothInstrumentationTests
Change-Id: Ifb6835ac3e0e26c0709c062c43dd8a7f56319f26
parent 60ee4e76
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -553,9 +553,9 @@ public final class BluetoothLeAdvertiser {
        }

        if (maxExtendedAdvertisingEvents != 0
                && !mBluetoothAdapter.isLePeriodicAdvertisingSupported()) {
                && !mBluetoothAdapter.isLeExtendedAdvertisingSupported()) {
            throw new IllegalArgumentException(
                    "Can't use maxExtendedAdvertisingEvents with controller that don't support "
                    "Can't use maxExtendedAdvertisingEvents with controller that doesn't support "
                            + "LE Extended Advertising");
        }