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

Commit ceabef76 authored by Jiabin Huang's avatar Jiabin Huang Committed by Android (Google) Code Review
Browse files

Merge "AS: only dispatch preferred mixer attributes change if the device is found." into udc-dev

parents 38549104 fbaee6c0
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -597,7 +597,13 @@ public class AudioDeviceInventory {
            if (wdcs.mState == AudioService.CONNECTION_STATE_DISCONNECTED
                    && AudioSystem.DEVICE_OUT_ALL_USB_SET.contains(
                            wdcs.mAttributes.getInternalType())) {
                mDeviceBroker.dispatchPreferredMixerAttributesChangedCausedByDeviceRemoved(info);
                if (info != null) {
                    mDeviceBroker.dispatchPreferredMixerAttributesChangedCausedByDeviceRemoved(
                            info);
                } else {
                    Log.e(TAG, "Didn't find AudioDeviceInfo to notify preferred mixer "
                            + "attributes change for type=" + wdcs.mAttributes.getType());
                }
            }
            sendDeviceConnectionIntent(type, wdcs.mState,
                    wdcs.mAttributes.getAddress(), wdcs.mAttributes.getName());