From 48842277524d016f7594750248c06c55a524a71d Mon Sep 17 00:00:00 2001 From: "kj7.sung" Date: Mon, 29 Feb 2016 21:08:50 +0900 Subject: [PATCH] Fix for mock method feature check Signed-off-by: kj7.sung Change-Id: I86731401e85a963a67ffaf14b259c39df4110c3c --- src/locations.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/locations.c b/src/locations.c index 707c615..124ee3d 100755 --- a/src/locations.c +++ b/src/locations.c @@ -490,6 +490,11 @@ EXPORT_API int location_manager_create(location_method_e method, location_manage LOCATIONS_LOGE("LOCATIONS_ERROR_NOT_SUPPORTED(0x%08x) : fail to location feature", LOCATIONS_ERROR_NOT_SUPPORTED); return LOCATIONS_ERROR_NOT_SUPPORTED; } + } else if (method == LOCATIONS_METHOD_MOCK) { + if (__is_gps_supported() == LOCATIONS_ERROR_NOT_SUPPORTED) { + LOCATIONS_LOGE("LOCATIONS_ERROR_NOT_SUPPORTED(0x%08x) : fail to location feature", LOCATIONS_ERROR_NOT_SUPPORTED); + return LOCATIONS_ERROR_NOT_SUPPORTED; + } } LocationMethod _method = __convert_LocationMethod(method); -- 2.7.4