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

Commit 7cdf0c8c authored by Myles Watson's avatar Myles Watson Committed by Automerger Merge Worker
Browse files
parents fb23c6cf 6695a5f1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4752,11 +4752,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");