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");
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");
}
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;