From: InHong Han Date: Fri, 27 Mar 2020 05:47:18 +0000 (+0900) Subject: Modified to request sticker sync using sticker feature X-Git-Tag: submit/tizen_5.5/20200330.104023~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2899271cb48c0597c433835afdd4f0799757efbb;p=platform%2Fcore%2Fuifw%2Fcapi-ui-sticker.git Modified to request sticker sync using sticker feature Change-Id: Iacf7c5fb7524aaaa6d76fde548dfff17fc32bedb --- diff --git a/receiver/src/main.cpp b/receiver/src/main.cpp index 969f575..aa65584 100644 --- a/receiver/src/main.cpp +++ b/receiver/src/main.cpp @@ -19,6 +19,7 @@ #include #include #include +#include #include "main.h" #include "ft.h" @@ -118,8 +119,20 @@ static void app_control(app_control_h app_control, void *data) goto cleanup; if (mode && type) { +#ifdef VCONFKEY_STICKER_SUPPORTED_FEATURE + int feature_flag = 0; + if (vconf_get_int(VCONFKEY_STICKER_SUPPORTED_FEATURE, &feature_flag) == 0) { + if (feature_flag & VCONFKEY_STICKER_FEATURE_AREMOJI) + request_sticker_data(mode, "arsticker", type); + + if (feature_flag & VCONFKEY_STICKER_FEATURE_BITMOJI) + request_sticker_data(mode, "bitmoji", type); + } else + LOGW("Failed to get value of VCONFKEY_STICKER_SUPPORTED_FEATURE"); +#else request_sticker_data(mode, "arsticker", type); request_sticker_data(mode, "bitmoji", type); +#endif } } else if (strcmp(request, "oobe") == 0) {