From 1f03e56889b68d1451d575fa86f47e5c777f6d42 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Wed, 19 Mar 2014 08:25:26 +0100 Subject: [PATCH] android/handsfree: Fix not sending callheld=2 when single call was held --- android/handsfree.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/android/handsfree.c b/android/handsfree.c index 4e49032ad..6be6f4fac 100644 --- a/android/handsfree.c +++ b/android/handsfree.c @@ -2100,7 +2100,6 @@ static void phone_state_idle(int num_active, int num_held) device.num_held == num_active) { /* TODO better way for forcing indicator */ device.inds[IND_CALLHELD].val = 0; - update_indicator(IND_CALLHELD, 1); } else if ((num_active > 0 || num_held > 0) && device.num_active == 0 && device.num_held == 0) { @@ -2111,11 +2110,10 @@ static void phone_state_idle(int num_active, int num_held) connect_audio(); } else if (num_active == 0 && num_held == 0) { disconnect_sco(); - } else { - update_indicator(IND_CALLHELD, - num_held ? (num_active ? 1 : 2) : 0); } + update_indicator(IND_CALLHELD, + num_held ? (num_active ? 1 : 2) : 0); update_indicator(IND_CALL, !!(num_active + num_held)); update_indicator(IND_CALLSETUP, 0); break; -- 2.47.3