Loading services/core/java/com/android/server/audio/AudioDeviceInventory.java +10 −8 Original line number Diff line number Diff line Loading @@ -195,7 +195,8 @@ public class AudioDeviceInventory { } else { makeA2dpDeviceUnavailableNow(address, di.mDeviceCodecFormat); } } } else if (state == BluetoothProfile.STATE_CONNECTED) { // device is not already connected if (a2dpVolume != -1) { mDeviceBroker.postSetVolumeIndexOnDevice(AudioSystem.STREAM_MUSIC, // convert index to internal representation in VolumeStreamState Loading @@ -206,6 +207,7 @@ public class AudioDeviceInventory { "onSetA2dpSinkConnectionState", a2dpCodec); } } } /*package*/ void onSetA2dpSourceConnectionState( @NonNull BtHelper.BluetoothA2dpDeviceInfo btInfo, int state) { Loading Loading
services/core/java/com/android/server/audio/AudioDeviceInventory.java +10 −8 Original line number Diff line number Diff line Loading @@ -195,7 +195,8 @@ public class AudioDeviceInventory { } else { makeA2dpDeviceUnavailableNow(address, di.mDeviceCodecFormat); } } } else if (state == BluetoothProfile.STATE_CONNECTED) { // device is not already connected if (a2dpVolume != -1) { mDeviceBroker.postSetVolumeIndexOnDevice(AudioSystem.STREAM_MUSIC, // convert index to internal representation in VolumeStreamState Loading @@ -206,6 +207,7 @@ public class AudioDeviceInventory { "onSetA2dpSinkConnectionState", a2dpCodec); } } } /*package*/ void onSetA2dpSourceConnectionState( @NonNull BtHelper.BluetoothA2dpDeviceInfo btInfo, int state) { Loading