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

Commit 6d3e51e1 authored by Rongxuan Liu's avatar Rongxuan Liu
Browse files

[le audio] Broadcast reset callback to null after unregister

After unregister callback, set mCallback to null to avoid register
failure after BT off and on.

Bug: 238010310
Test: atest BluetoothLeBroadcastAssistantTest
Change-Id: I6ab531739fcb672e835ea77cd94956971cd56c25
parent e2c4760a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -582,6 +582,7 @@ public final class BluetoothLeBroadcastAssistant implements BluetoothProfile, Au
                throw new IllegalArgumentException("no callback was ever registered");
            }
            mCallback.unregister(callback);
            mCallback = null;
        }
    }