fix bug for checking vconf 68/66768/1 accepted/tizen/common/20160421.161558 accepted/tizen/ivi/20160422.065539 accepted/tizen/mobile/20160422.065602 accepted/tizen/tv/20160422.065525 accepted/tizen/wearable/20160422.065502 submit/tizen/20160421.025031
authorjongmun.woo <jongmun.woo@samsung.com>
Thu, 21 Apr 2016 02:47:33 +0000 (11:47 +0900)
committerjongmun.woo <jongmun.woo@samsung.com>
Thu, 21 Apr 2016 02:47:51 +0000 (11:47 +0900)
Signed-off-by: jongmun.woo <jongmun.woo@samsung.com>
Change-Id: I479e99486d87de435a388cbcaa2954cc50040b0d

heremaps-uc/src/heremaps-uc.c
src/here_manager.cpp

index bcfd313..659f1fb 100644 (file)
@@ -65,7 +65,7 @@ static void read_vconf(heremaps_uc_app_data *ad)
        int enabled = 0;
        int ret = 0;
 
-       ret = vconf_get_int(VCONFKEY_LOCATION_HEREMAPS_CONSENT, &enabled);
+       ret = vconf_get_bool(VCONFKEY_LOCATION_HEREMAPS_CONSENT, &enabled);
        if (ret != 0)
                LS_LOGE("Fail to get vconf value");
 
@@ -86,11 +86,11 @@ static void save_vconf(int value, heremaps_uc_app_data *ad)
        int enabled = 0;
        int ret = 0;
 
-       ret = vconf_get_int(VCONFKEY_LOCATION_HEREMAPS_CONSENT, &enabled);
+       ret = vconf_get_bool(VCONFKEY_LOCATION_HEREMAPS_CONSENT, &enabled);
        if (ret != 0)
                LS_LOGE("Fail to get vconf value");
        else if (enabled != value) {
-               ret = vconf_set_int(VCONFKEY_LOCATION_HEREMAPS_CONSENT, value);
+               ret = vconf_set_bool(VCONFKEY_LOCATION_HEREMAPS_CONSENT, value);
                if (ret != 0)
                        LS_LOGE("Fail to set vconf value");
        }
index 37a42de..e99dd78 100644 (file)
@@ -510,7 +510,7 @@ here_error_e HereManager::CheckAgreement()
        char *strAppId = NULL;
        here_error_e error = HERE_ERROR_NONE;
 
-       ret = vconf_get_int(VCONFKEY_LOCATION_HEREMAPS_CONSENT, &enabled);
+       ret = vconf_get_bool(VCONFKEY_LOCATION_HEREMAPS_CONSENT, &enabled);
        MAPS_LOGD("VCONFKEY_LOCATION_HEREMAPS_CONSENT is %d", enabled);
        if (ret != 0 || enabled == 0) {
                error = HERE_ERROR_SERVICE_NOT_AVAILABLE;