mirror of git://git.sysmocom.de/ofono
stk: use longer timeout for ImmediateResponse
This commit is contained in:
parent
85c0e53013
commit
f39d7efb53
|
@ -1385,6 +1385,9 @@ static gboolean handle_command_display_text(const struct stk_command *cmd,
|
||||||
if (dt->duration.interval)
|
if (dt->duration.interval)
|
||||||
timeout = duration_to_msecs(&dt->duration);
|
timeout = duration_to_msecs(&dt->duration);
|
||||||
|
|
||||||
|
if (cmd->display_text.immediate_response)
|
||||||
|
timeout = stk->timeout * 1000;
|
||||||
|
|
||||||
err = stk_agent_display_text(stk->current_agent, text, &dt->icon_id,
|
err = stk_agent_display_text(stk->current_agent, text, &dt->icon_id,
|
||||||
priority, display_text_cb, stk,
|
priority, display_text_cb, stk,
|
||||||
display_text_destroy, timeout);
|
display_text_destroy, timeout);
|
||||||
|
|
Loading…
Reference in New Issue