From e809fdec8c457128406987c7c22336b865ab2881 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Fri, 7 Aug 2020 13:53:40 +0900 Subject: [PATCH] Launch sticker-receiver for receiving sticker feature Change-Id: I4a0851c30ffdf10917bfec9dd1adf643e6ba80d3 Signed-off-by: Jihoon Kim --- receiver/src/main.cpp | 15 +++++++++++++++ receiver/tizen-manifest.xml | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/receiver/src/main.cpp b/receiver/src/main.cpp index 783ac2d..a829059 100644 --- a/receiver/src/main.cpp +++ b/receiver/src/main.cpp @@ -214,6 +214,21 @@ static void app_control(app_control_h app_control, void *data) free(uri); } } + else if (strcmp(operation, APP_CONTROL_OPERATION_DEFAULT) == 0) { +#ifdef VCONFKEY_STICKER_SUPPORTED_FEATURE + // Check whether oobe has been done + int feature_flag = 0; + if (vconf_get_int(VCONFKEY_STICKER_SUPPORTED_FEATURE, &feature_flag) == 0 && feature_flag == 0) { + STLOGD("Request to get sticker feature"); + initialize_sap(); + request_sticker_feature(); + } + else { + if (!is_init_sap()) + service_app_exit(); + } +#endif + } } else { STLOGW("Failed to get operation. error : %d", ret); diff --git a/receiver/tizen-manifest.xml b/receiver/tizen-manifest.xml index b4889cd..247a220 100644 --- a/receiver/tizen-manifest.xml +++ b/receiver/tizen-manifest.xml @@ -1,7 +1,7 @@ - + -- 2.7.4