Do not remove indicator from noti applist. 81/74481/3 accepted/tizen/mobile/20160616.003646 submit/tizen/20160615.152254
authorRadoslaw Czerski <r.czerski@samsung.com>
Wed, 15 Jun 2016 15:08:37 +0000 (17:08 +0200)
committerRadoslaw Czerski <r.czerski@samsung.com>
Wed, 15 Jun 2016 15:08:37 +0000 (17:08 +0200)
Change-Id: Iedecb6013775947a7eac4661d6a67e41fde8eaf2
Signed-off-by: Radoslaw Czerski <r.czerski@samsung.com>
src/ticker.c

index 3bf8e31c79de1e8c60ed2606d0e0fa66e53a9c50..298405d4a816ef182ba2fc0c5fd0424960cab424 100644 (file)
@@ -128,6 +128,8 @@ static notification_h _get_instant_latest_message_from_list(ticker_info_s *ticke
 
 static void _request_to_delete_noti(notification_h noti)
 {
+       _D("_request_to_delete_noti");
+
        int applist = NOTIFICATION_DISPLAY_APP_ALL;
 
        ret_if(!noti);
@@ -136,10 +138,10 @@ static void _request_to_delete_noti(notification_h noti)
                _E("Failed to get display");
        }
 
-       if (applist & (NOTIFICATION_DISPLAY_APP_TICKER | NOTIFICATION_DISPLAY_APP_INDICATOR)) {
-               if (applist & ~(NOTIFICATION_DISPLAY_APP_TICKER | NOTIFICATION_DISPLAY_APP_INDICATOR)) {
+       if (applist & NOTIFICATION_DISPLAY_APP_TICKER) {
+               if (applist & ~NOTIFICATION_DISPLAY_APP_TICKER) {
                        // Do not delete in this case
-                       _D("There is another subscriber: 0x%X (filtered: 0x%X)", applist, applist & ~(NOTIFICATION_DISPLAY_APP_TICKER | NOTIFICATION_DISPLAY_APP_INDICATOR));
+                       _D("There is another subscriber: 0x%X (filtered: 0x%X)", applist, applist & ~(NOTIFICATION_DISPLAY_APP_TICKER));
                } else {
                        char *pkgname = NULL;
                        int priv_id = 0;
@@ -1343,7 +1345,7 @@ static void _ticker_noti_detailed_changed_cb(void *data, notification_type_e typ
        ret_if(!noti);
 
        notification_get_display_applist(noti, &applist);
-       if (!((applist & NOTIFICATION_DISPLAY_APP_TICKER) || (applist & NOTIFICATION_DISPLAY_APP_INDICATOR))) {
+       if (!(applist & NOTIFICATION_DISPLAY_APP_TICKER)) {
                _D("displaying ticker option is off");
                goto ERROR;
        }