Nick Pelly 62895a67d2 Fix regression.
When turning off BT while connected to an A2DP/HFP headset we can hit the path

BluetoothHeadsetService.onReceive(BluetoothHeadset.STATE_CHANGED) ->
BluetoothHandsfree.audioOff() ->
BluetoothA2dp.resumeSink() ->
which causes resumeSink() to NPE because mAudioDevices.get() returns null.

It's a race between A2DP marking the device as disconnected, and HFP marking
the device as disconnected.

Fix is to NPE check in resumeSink().

Change-Id: I2782ac8c70ea1678d7de5fcd49bff8e03df36f4e
2009-09-30 15:30:43 -07:00
..
2009-09-29 22:52:05 -07:00
2009-09-30 12:06:28 -07:00
2009-09-29 16:16:33 -07:00
2009-09-30 10:52:27 -07:00
2009-09-30 15:30:43 -07:00
2009-09-17 09:44:43 -07:00
2009-09-17 11:21:47 -04:00
2009-09-11 17:15:15 -07:00
2009-09-29 15:42:37 -04:00
2009-09-29 21:53:56 -07:00
2009-09-30 14:45:17 -04:00