OSDN Git Service

when disconnectHeadsetInternal, allow it when the BT is not disabled
authorMatthew Xie <mattx@google.com>
Thu, 21 Jul 2011 00:10:40 +0000 (17:10 -0700)
committerMatthew Xie <mattx@google.com>
Thu, 21 Jul 2011 00:12:52 +0000 (17:12 -0700)
commite3dc975acb716eede4abb0d1f4a5f969f92fc307
tree4362b09f7b2ee9a30a41c6362752cbc3530a32ab
parent4a8df318b06a85a90309149ebcbff3b25077de15
when disconnectHeadsetInternal, allow it when the BT is not disabled

The old code allowed the disconnection only when BT is enabled. This
caused a bug during BT turning off that Headset connection failed
to disconnect.
Change-Id: Iba15a1595b6987064f071ad90bbb126a6edfe6b5
core/java/android/bluetooth/BluetoothHeadset.java