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

Commit 849fb670 authored by Hyundo Moon's avatar Hyundo Moon
Browse files

LeAudioService: Reset mExposedActiveDevice when deactivated

Bug: 278301364
Test: Manually switch between LE audio and A2DP device in BT settings
Change-Id: Ief33333fda053444d183881a46a6b8e2579d1701
parent aa6a2f84
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -396,6 +396,7 @@ public class LeAudioService extends ProfileService {

        mActiveAudioOutDevice = null;
        mActiveAudioInDevice = null;
        mExposedActiveDevice = null;
        mLeAudioCodecConfig = null;

        // Set the service and BLE devices as inactive
@@ -1243,6 +1244,8 @@ public class LeAudioService extends ProfileService {
                    continue;
                }

                mExposedActiveDevice = null;

                if (DBG) {
                    Log.d(TAG, " onAudioDevicesRemoved: " + address + ", device type: "
                            + deviceInfo.getType() + ", isSink: " + deviceInfo.isSink()