Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa5aa578 authored by Mallikarjuna GB's avatar Mallikarjuna GB Committed by Andre Eisenbach
Browse files

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
parent 3c3aa329
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);