From 5e79f2c7faf3d075bb27cb49690be6a6067d1143 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Tue, 21 Aug 2012 07:11:51 -0300 Subject: [PATCH] callscreen: hide "held" (2nd call) if it's the only call. --- dialer/callscreen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dialer/callscreen.c b/dialer/callscreen.c index f0d57e5..76e4c99 100644 --- a/dialer/callscreen.c +++ b/dialer/callscreen.c @@ -682,7 +682,8 @@ static void _call_changed(void *data, OFono_Call *c) if ((is_held) && (!was_held)) { elm_object_signal_emit(ctx->self, "show,held", "call"); _multiparty_private_available_update(ctx); - } else if ((!is_held) && (was_held)) { + } else if (((!is_held) && (was_held)) || + (ctx->calls.active == ctx->calls.held)) { elm_object_part_text_set(ctx->self, "elm.text.held", ""); elm_object_signal_emit(ctx->self, "hide,held", "call"); _multiparty_private_available_update(ctx); -- 2.7.4