mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-07 04:15:32 +00:00
calls-ui-call-data: change DELAY_UI_MS to 100 ms
15 ms does not seem to be enough time for phosh-antispam to be able to hang up before the incoming call screen shows up. In my experiement, 90 looks to be the minimum time needed for the incoming call to not show up. I put it to 100 ms just to be safe.
This commit is contained in:
parent
70edd671fb
commit
e91d6258ad
2 changed files with 2 additions and 2 deletions
|
@ -402,7 +402,7 @@ on_delay_set_active (CallsUiCallData *self)
|
|||
}
|
||||
|
||||
|
||||
#define DELAY_UI_MS 15
|
||||
#define DELAY_UI_MS 100
|
||||
static void
|
||||
calls_ui_call_data_constructed (GObject *object)
|
||||
{
|
||||
|
|
|
@ -359,7 +359,7 @@ test_ringing_hang_up_call_ringer_cancelled (void **state)
|
|||
/** this timeout needs to be longer than the delay for activating the UI/ringer,
|
||||
* see DELAY_UI_MS in calls-ui-call-data.c
|
||||
*/
|
||||
g_timeout_add (20, G_SOURCE_FUNC (t3_on_ringer_timeout), data);
|
||||
g_timeout_add (105, G_SOURCE_FUNC (t3_on_ringer_timeout), data);
|
||||
|
||||
/* main loop will quit in t3_on_ringer_timeout() */
|
||||
g_main_loop_run (data->loop);
|
||||
|
|
Loading…
Reference in a new issue