Remove category in app_control 04/227304/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 11 Mar 2020 06:14:34 +0000 (15:14 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 11 Mar 2020 06:14:34 +0000 (15:14 +0900)
Change-Id: I1f88218aff1e8534167a0aea335cd4bc1c6e01ac
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
receiver/src/main.cpp

index 394f38f..115d278 100644 (file)
@@ -28,7 +28,6 @@ static void app_control(app_control_h app_control, void *data)
     /* Handle the launch request. */
     char* request = NULL;
     char* mode = NULL;
-    char* category = NULL;
     char* type = NULL;
     char* operation = NULL;
     char* alarm_data = NULL;
@@ -82,22 +81,17 @@ static void app_control(app_control_h app_control, void *data)
                 param_error = true;
             }
 
-            if (app_control_get_extra_data(app_control, "category", &category) != APP_CONTROL_ERROR_NONE) {
-                LOGE("No given category");
-                param_error = true;
-            }
-
             if (app_control_get_extra_data(app_control, "type", &type) != APP_CONTROL_ERROR_NONE) {
                 LOGE("No given type");
                 param_error = true;
             }
 
-            LOGI("[sync request] mode : %s, category : %s, type : %s", mode, category, type);
+            LOGI("[sync request] mode : %s, type : %s", mode, type);
             if (param_error)
                 goto cleanup;
 
-            if (mode && category && type)
-                request_sticker_data(mode, category, type);
+            if (mode && type)
+                request_sticker_data(mode, "arsticker", type);
         }
         else if (strcmp(request, "oobe") == 0) {
             LOGI("[OOBE] register sync alarm");
@@ -120,9 +114,6 @@ cleanup:
     if (NULL != mode)
         free(mode);
 
-    if (NULL != category)
-        free(category);
-
     if (NULL != type)
         free(type);
 }