callscreen: hide "held" (2nd call) if it's the only call.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Tue, 21 Aug 2012 10:11:51 +0000 (07:11 -0300)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Tue, 21 Aug 2012 10:11:51 +0000 (07:11 -0300)
dialer/callscreen.c

index f0d57e5..76e4c99 100644 (file)
@@ -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);