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

Commit 724e86a0 authored by William Escande's avatar William Escande
Browse files

Typo fix

Bug: 274131645
Test: all bluetooth test to be sure this change does not break anything
Change-Id: Icc45bf7a3b9e4af83b3438b61d46e3a138148ac6
parent 8f258659
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4748,11 +4748,11 @@ public final class BluetoothAdapter {
            List<Pair<OnMetadataChangedListener, Executor>> listenerList =
                    mMetadataListeners.get(device);
            if (listenerList == null) {
                // Create new listener/executor list for registeration
                // Create new listener/executor list for registration
                listenerList = new ArrayList<>();
                mMetadataListeners.put(device, listenerList);
            } else {
                // Check whether this device was already registed by the lisenter
                // Check whether this device is already registered by the listener
                if (listenerList.stream().anyMatch((pair) -> (pair.first.equals(listener)))) {
                    throw new IllegalArgumentException("listener was already regestered"
                            + " for the device");