summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSumit Bajpai <sbajpai@codeaurora.org>2014-02-17 13:13:25 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2014-03-03 23:24:30 -0800
commit98718fe1dfbf82e7422bf3a392e37086ef74c8c8 (patch)
tree8a667851a678128301dca190525381faf6376e53 /src
parentaf529cfba777fcb4f540a9549b8774209f61f11b (diff)
downloadandroid_packages_apps_Bluetooth-98718fe1dfbf82e7422bf3a392e37086ef74c8c8.tar.gz
android_packages_apps_Bluetooth-98718fe1dfbf82e7422bf3a392e37086ef74c8c8.tar.bz2
android_packages_apps_Bluetooth-98718fe1dfbf82e7422bf3a392e37086ef74c8c8.zip
BT: HFP: Set VR flags to false when HS disconnects
When a HS is disconnected while in VR session and then reconnected again, VR attempt from HS fails as VR flags mVoiceRecognitionStarted and mWaitingForVoiceRecognition were not reset to false when HS disconnected. CRs-Fixed: 623255 Change-Id: I008f01393a5529f63cd8392401e1402a9afe70a8
Diffstat (limited to 'src')
-rw-r--r--src/com/android/bluetooth/hfp/HeadsetStateMachine.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/bluetooth/hfp/HeadsetStateMachine.java b/src/com/android/bluetooth/hfp/HeadsetStateMachine.java
index c429d627c..19f09d560 100644
--- a/src/com/android/bluetooth/hfp/HeadsetStateMachine.java
+++ b/src/com/android/bluetooth/hfp/HeadsetStateMachine.java
@@ -334,6 +334,8 @@ final class HeadsetStateMachine extends StateMachine {
log("Enter Disconnected: " + getCurrentMessage().what);
mPhonebook.resetAtState();
mPhoneState.listenForPhoneState(false);
+ mVoiceRecognitionStarted = false;
+ mWaitingForVoiceRecognition = false;
}
@Override