Merge "AudioService: no forced usage for media when hearing aid is connected"
This commit is contained in:
committed by
Android (Google) Code Review
commit
c29a0a3cf2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user