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

Commit c29a0a3c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "AudioService: no forced usage for media when hearing aid is connected"

parents bf23b865 cb658590
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -702,6 +702,10 @@ public class AudioDeviceInventory {
                delay = 0;
            }
            mDeviceBroker.postSetHearingAidConnectionState(state, device, delay);
            if (state == BluetoothHearingAid.STATE_CONNECTED) {
                mDeviceBroker.setForceUse_Async(AudioSystem.FOR_MEDIA, AudioSystem.FORCE_NONE,
                                "HEARING_AID set to CONNECTED");
            }
            return delay;
        }
    }