From c2c8a1fce4a577fc1a14a96fe96cab3043db4140 Mon Sep 17 00:00:00 2001 From: Mallikarjuna GB Date: Thu, 21 May 2015 17:58:12 +0530 Subject: [PATCH] Update held call state to connected headset In a three way call scenario, when an active call is dropped by remote, the single held call state is not updated to the connected headset. This change will make sure that it is updated properly. Change-Id: I558602e791279d510edb23989b125cd8f7a7ebde --- btif/src/btif_hf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/btif/src/btif_hf.c b/btif/src/btif_hf.c index 68af793b7..3006a0b2c 100644 --- a/btif/src/btif_hf.c +++ b/btif/src/btif_hf.c @@ -1341,7 +1341,8 @@ static bt_status_t phone_state_change(int num_active, int num_held, bthf_call_st } /* Held Changed? */ - if (num_held != btif_hf_cb[idx].num_held) + if (num_held != btif_hf_cb[idx].num_held || + ((num_active == 0) && ((num_held + btif_hf_cb[idx].num_held) > 1))) { BTIF_TRACE_DEBUG("%s: Held call states changed. old: %d new: %d", __FUNCTION__, btif_hf_cb[idx].num_held, num_held); -- 2.11.0