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

Commit 80de4ef7 authored by Paul Mclean's avatar Paul Mclean Committed by Android (Google) Code Review
Browse files

Merge "Fixed capture-only devices not removed when disconnected."

parents 1de39f15 e3b077b1
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -439,7 +439,7 @@ public final class UsbAlsaManager {


        UsbAudioDevice audioDevice = mAudioDevices.remove(usbDevice);
        UsbAudioDevice audioDevice = mAudioDevices.remove(usbDevice);
        if (audioDevice != null) {
        if (audioDevice != null) {
            if (audioDevice.mHasPlayback || audioDevice.mHasPlayback) {
            if (audioDevice.mHasPlayback || audioDevice.mHasCapture) {
                notifyDeviceState(audioDevice, false);
                notifyDeviceState(audioDevice, false);


                // if there any external devices left, select one of them
                // if there any external devices left, select one of them