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

Commit d2b2b44c authored by Jakub Pawłowski's avatar Jakub Pawłowski Committed by Gerrit Code Review
Browse files

Merge "AdapterService: Fix changing Active device from LeAudio headset" into main

parents b596f6db 338268c8
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -6077,7 +6077,10 @@ public class AdapterService extends Service {
        if (leAudioSupported) {
            Log.i(TAG, "setActiveDevice: Setting active Le Audio device " + device);
            if (device == null) {
                mLeAudioService.removeActiveDevice(false);
                /* If called by BluetoothAdapter it means Audio should not be stopped.
                 * For this reason let's say that fallback device exists
                 */
                mLeAudioService.removeActiveDevice(true /* hasFallbackDevice */);
            } else {
                mLeAudioService.setActiveDevice(device);
            }