From: Sergio Villar Senin Date: Mon, 14 Sep 2009 14:10:36 +0000 (+0200) Subject: Fixes NB#137949, show notifications even if the application is in the foreground X-Git-Tag: 3.0.17-rc55~2 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=3c69f98fa676f974fce0b88c4e49ddab168f1381 Fixes NB#137949, show notifications even if the application is in the foreground --- diff --git a/src/hildon2/modest-platform.c b/src/hildon2/modest-platform.c index 77cc610..e1ff49e 100644 --- a/src/hildon2/modest-platform.c +++ b/src/hildon2/modest-platform.c @@ -1601,19 +1601,6 @@ void modest_platform_on_new_headers_received (GList *URI_list, gboolean show_visual) { - gboolean screen_on, app_in_foreground; - - /* Get the window status */ - app_in_foreground = hildon_program_get_is_topmost (hildon_program_get_instance ()); - screen_on = modest_window_mgr_screen_is_on (modest_runtime_get_window_mgr ()); - - /* If the screen is on and the app is in the foreground we - don't show anything, just play a chime */ - if (screen_on && app_in_foreground) { - modest_platform_play_email_tone (); - return; - } - if (g_list_length (URI_list) == 0) return;