Disconnect before Unpair
This commit is contained in:
committed by
Matthew Xie
parent
ccefcbebe0
commit
4e1876a40a
2
src/com/android/settings/bluetooth/CachedBluetoothDevice.java
Normal file → Executable file
2
src/com/android/settings/bluetooth/CachedBluetoothDevice.java
Normal file → Executable 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) {
|
||||||
|
Reference in New Issue
Block a user