Loading core/java/android/server/BluetoothA2dpService.java +5 −0 Original line number Diff line number Diff line Loading @@ -367,6 +367,11 @@ public class BluetoothA2dpService extends IBluetoothA2dp.Stub { int state = getSinkState(device); String path = mBluetoothService.getObjectPathFromAddress(device.getAddress()); switch (state) { case BluetoothA2dp.STATE_DISCONNECTED: case BluetoothA2dp.STATE_DISCONNECTING: return false; } // State is CONNECTING or CONNECTED or PLAYING handleSinkStateChange(device, state, BluetoothA2dp.STATE_DISCONNECTING); if (!disconnectSinkNative(path)) { Loading Loading
core/java/android/server/BluetoothA2dpService.java +5 −0 Original line number Diff line number Diff line Loading @@ -367,6 +367,11 @@ public class BluetoothA2dpService extends IBluetoothA2dp.Stub { int state = getSinkState(device); String path = mBluetoothService.getObjectPathFromAddress(device.getAddress()); switch (state) { case BluetoothA2dp.STATE_DISCONNECTED: case BluetoothA2dp.STATE_DISCONNECTING: return false; } // State is CONNECTING or CONNECTED or PLAYING handleSinkStateChange(device, state, BluetoothA2dp.STATE_DISCONNECTING); if (!disconnectSinkNative(path)) { Loading