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

Commit c8843804 authored by Jack He's avatar Jack He Committed by Automerger Merge Worker
Browse files

Merge "Fix unregistering callbacks" am: b6a2beb6

parents 07bf5a61 b6a2beb6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -601,7 +601,7 @@ public final class BluetoothHapClient implements BluetoothProfile, AutoCloseable
        if (DBG) log("unregisterCallback");

        synchronized (mCallbackExecutorMap) {
            if (mCallbackExecutorMap.remove(callback) != null) {
            if (mCallbackExecutorMap.remove(callback) == null) {
                throw new IllegalArgumentException("This callback has not been registered");
            }
        }
+1 −1
Original line number Diff line number Diff line
@@ -1002,7 +1002,7 @@ public final class BluetoothLeAudio implements BluetoothProfile, AutoCloseable {
        if (DBG) log("unregisterCallback");

        synchronized (mCallbackExecutorMap) {
            if (mCallbackExecutorMap.remove(callback) != null) {
            if (mCallbackExecutorMap.remove(callback) == null) {
                throw new IllegalArgumentException("This callback has not been registered");
            }
        }
+1 −1
Original line number Diff line number Diff line
@@ -485,7 +485,7 @@ public final class BluetoothLeBroadcast implements AutoCloseable, BluetoothProfi
        if (DBG) log("unregisterCallback");

        synchronized (mCallbackExecutorMap) {
            if (mCallbackExecutorMap.remove(callback) != null) {
            if (mCallbackExecutorMap.remove(callback) == null) {
                throw new IllegalArgumentException("This callback has not been registered");
            }
        }