Disconnect before Unpair

This commit is contained in:
Harish Paryani
2012-03-07 18:19:44 -08:00
committed by Matthew Xie
parent ccefcbebe0
commit 4e1876a40a

View File

@@ -283,8 +283,6 @@ final class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> {
} }
void unpair() { void unpair() {
disconnect();
int state = getBondState(); int state = getBondState();
if (state == BluetoothDevice.BOND_BONDING) { if (state == BluetoothDevice.BOND_BONDING) {