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

Commit d1323e9b authored by Glenn Kasten's avatar Glenn Kasten Committed by android-build-merger
Browse files

Merge "Built-in mic is not used when USB mic is disconnected" am: ebbdabdb

am: 11041803

* commit '11041803':
  Built-in mic is not used when USB mic is disconnected
parents 7cdbfaf4 11041803
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