fixed calendar capability as invalid instead of checking calendar priv for wearable 42/76442/1
authorIckhee Woo <ickhee.woo@samsung.com>
Fri, 24 Jun 2016 03:00:49 +0000 (12:00 +0900)
committerIckhee Woo <ickhee.woo@samsung.com>
Fri, 24 Jun 2016 03:00:49 +0000 (12:00 +0900)
Change-Id: I825f6da8c2b8c405ff8a1c0d2138dbccc561b8e1
Signed-off-by: Ickhee Woo <ickhee.woo@samsung.com>
src/sync-client/sync_manager.c

index 4878ed39db651a0db02215ff9f3b10d0db5805f0..478e9a60d3db86a27fb3c748895f37ec225617aa 100644 (file)
@@ -317,7 +317,10 @@ int sync_manager_add_periodic_sync_job(account_h account, const char *sync_job_n
 int sync_manager_add_data_change_sync_job(account_h account, const char *sync_capability, sync_option_e sync_option, bundle *sync_job_user_data, int *sync_job_id)
 {
        if (sync_capability != NULL) {
-               if (!(strcmp(sync_capability, "http://tizen.org/sync/capability/calendar")) ||
+               if (
+#if defined(_FEATURE_CALENDAR_ENABLE)
+                       !(strcmp(sync_capability, "http://tizen.org/sync/capability/calendar")) ||
+#endif
                        !(strcmp(sync_capability, "http://tizen.org/sync/capability/contact")) ||
                        !(strcmp(sync_capability, "http://tizen.org/sync/capability/image")) ||
                        !(strcmp(sync_capability, "http://tizen.org/sync/capability/video")) ||