[calls] calls-ui-call-data: change DELAY_UI_MS to 100 ms



commit e91d6258ad7978a6d369b134c2a0b31bc856b92a
Author: Chris Talbot <chris talbothome com>
Date:   Fri Jun 10 20:37:24 2022 -0400

    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.

 src/calls-ui-call-data.c | 2 +-
 tests/test-ringer.c      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/calls-ui-call-data.c b/src/calls-ui-call-data.c
index 0752bb78..490f0a11 100644
--- a/src/calls-ui-call-data.c
+++ b/src/calls-ui-call-data.c
@@ -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)
 {
diff --git a/tests/test-ringer.c b/tests/test-ringer.c
index 33165139..19daf806 100644
--- a/tests/test-ringer.c
+++ b/tests/test-ringer.c
@@ -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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]