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

Commit e3b077b1 authored by Paul McLean's avatar Paul McLean
Browse files

Fixed capture-only devices not removed when disconnected.

I have brought shame upon my family.

Bug: 24932354
Change-Id: I0fce40a976f40e74f4fd87eb6f4aa93e847032cc
parent 7fef1888
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -439,7 +439,7 @@ public final class UsbAlsaManager {

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

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