summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkj7.sung <kj7.sung@samsung.com>2016-02-29 21:08:50 +0900
committerkj7.sung <kj7.sung@samsung.com>2016-02-29 21:09:16 +0900
commit48842277524d016f7594750248c06c55a524a71d (patch)
treea494d23aa7469aaa482b9a0549dedf39a5563906
parentf1ba384e9ddbc9ffac92ec2f159d979dc16bbd66 (diff)
downloadlocation-manager-48842277524d016f7594750248c06c55a524a71d.tar.gz
location-manager-48842277524d016f7594750248c06c55a524a71d.tar.bz2
location-manager-48842277524d016f7594750248c06c55a524a71d.zip
Signed-off-by: kj7.sung <kj7.sung@samsung.com> Change-Id: I86731401e85a963a67ffaf14b259c39df4110c3c
-rwxr-xr-xsrc/locations.c5
1 files changed, 5 insertions, 0 deletions
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);