summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpenghua <quic_penghua@quicinc.com>2022-05-24 18:20:49 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2022-06-03 19:09:05 -0700
commitcbf1e819bfe3e3855b7de2467339f52f06c376cb (patch)
treed5e6cb880f1aecf8ad512365b5660aa439817a9b
parenta15126efd6cc1ba7d30d9744b51fcde048876db0 (diff)
Reset sdpprogress flag properly
Reset sdpprogress flag to true if bond state is bonded or bond_none. Change-Id: Iea19686cf94c07618b5e17421536533c24b26426 CRs-Fixed: 3203921
-rw-r--r--src/com/android/bluetooth/btservice/BondStateMachine.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/bluetooth/btservice/BondStateMachine.java b/src/com/android/bluetooth/btservice/BondStateMachine.java
index 927040222..f10d32571 100644
--- a/src/com/android/bluetooth/btservice/BondStateMachine.java
+++ b/src/com/android/bluetooth/btservice/BondStateMachine.java
@@ -563,7 +563,8 @@ final class BondStateMachine extends StateMachine {
}
}
- if (newState == BluetoothDevice.BOND_BONDED ) {
+ if ((newState == BluetoothDevice.BOND_BONDED )
+ ||(newState == BluetoothDevice.BOND_NONE)){
mAdapterProperties.updateSdpProgress(device, true /* SDP Completed */);
}
Intent intent = new Intent(BluetoothDevice.ACTION_BOND_STATE_CHANGED);