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

Commit 43dabc4d authored by Jakub Tyszkowski's avatar Jakub Tyszkowski
Browse files

LeAudio: Improve service cleanup

Some fields were not cleaned up on service shut down.
This was visible in the unit tests.

Bug: 254925603
Tag: #feature
Test: atest BluetoothInstrumentationTests
Change-Id: Ia322147e1d92ddd76f81d95558b3cd4a8e613dbc
parent cc2f4847
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -326,6 +326,11 @@ public class LeAudioService extends ProfileService {
        mLeAudioNativeIsInitialized = false;
        mHfpHandoverDevice = null;

        mActiveAudioOutDevice = null;
        mActiveAudioInDevice = null;
        mDatabaseManager = null;
        mLeAudioCodecConfig = null;

        // Set the service and BLE devices as inactive
        setLeAudioService(null);