Remove dependency on Clalendar & Clock apps 61/235461/2 tizen tizen_6.0 tizen_6.0_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 submit/tizen/20200610.061740 submit/tizen_6.0/20201029.205505 submit/tizen_6.0_hotfix/20201102.192905 submit/tizen_6.0_hotfix/20201103.115105 submit/tizen_6.5/20211028.164201 submit/tizen_6.5/20211029.123901 tizen_6.0_src.m2_release tizen_6.5_src.m2_release tizen_7.0_src.m2_release tizen_8.0_m2_release
authorAmritanshu <a.pandia1@samsung.com>
Thu, 4 Jun 2020 19:00:43 +0000 (00:30 +0530)
committerAmritanshu <a.pandia1@samsung.com>
Tue, 9 Jun 2020 19:07:20 +0000 (00:37 +0530)
Change-Id: I80c8fc55ba1e980ac14af738d013c1700e866d17
Signed-off-by: Amritanshu <a.pandia1@samsung.com>
src/notification-setting-info.c

index b2eeeb9..0426072 100755 (executable)
@@ -24,9 +24,7 @@
 setting_info_s *setting_info = NULL;
 
 #define PHONE_PACKAGE "org.tizen.phone"
-#define CALENDAR_PACKAGE "org.tizen.calendar"
 #define MESSAGES_PACKAGE "org.tizen.message"
-#define CLOCK_PACKAGE "org.tizen.clock"
 
 Eina_Bool create_app_notification_list()
 {
@@ -86,27 +84,15 @@ void create_do_not_disturb_application_list()
 
        EINA_LIST_FOREACH(not_excepted_list, l, data) {
                item_info_s *item_info = (item_info_s*) data;
-               if (!strcmp(item_info->package_id, CALENDAR_PACKAGE)) {
-                       FREEIF(item_info->name);
-                       item_info->name = strdup(APP_STRING("IDS_COM_BODY_CALENDAR_EVENTS"));
-               }
-               if (!strcmp(item_info->package_id, CLOCK_PACKAGE)) {
-                       FREEIF(item_info->name);
-                       item_info->name = strdup(APP_STRING("IDS_ST_BODY_ALARMS"));
-               }
                if (item_info->name && strcmp(item_info->package_id, PHONE_PACKAGE)) {
-                       if ((item_info->allow_to_notify && !strcmp(item_info->package_id, MESSAGES_PACKAGE))
-                                       || !strcmp(item_info->package_id, CLOCK_PACKAGE)
-                                       || !strcmp(item_info->package_id, CALENDAR_PACKAGE)) {
+                       if ((item_info->allow_to_notify && !strcmp(item_info->package_id, MESSAGES_PACKAGE))) {
                                setting_info->first_allowed_list = eina_list_append(setting_info->first_allowed_list, item_info);
                                if (item_info->do_not_disturb_except) {
                                        setting_info->first_excepted_list = eina_list_append(setting_info->first_excepted_list, item_info);
                                }
                        }
 
-                       if (item_info->allow_to_notify && strcmp(item_info->package_id, MESSAGES_PACKAGE)
-                                                               && strcmp(item_info->package_id, CALENDAR_PACKAGE)
-                                                               && strcmp(item_info->package_id, CLOCK_PACKAGE)) {
+                       if (item_info->allow_to_notify && strcmp(item_info->package_id, MESSAGES_PACKAGE)) {
                                if (item_info->do_not_disturb_except) {
                                        setting_info->excepted_list = eina_list_append(setting_info->excepted_list, item_info);
                                } else {