diff options
author | kj7.sung <kj7.sung@samsung.com> | 2016-02-29 21:08:50 +0900 |
---|---|---|
committer | kj7.sung <kj7.sung@samsung.com> | 2016-02-29 21:09:16 +0900 |
commit | 48842277524d016f7594750248c06c55a524a71d (patch) | |
tree | a494d23aa7469aaa482b9a0549dedf39a5563906 | |
parent | f1ba384e9ddbc9ffac92ec2f159d979dc16bbd66 (diff) | |
download | location-manager-48842277524d016f7594750248c06c55a524a71d.tar.gz location-manager-48842277524d016f7594750248c06c55a524a71d.tar.bz2 location-manager-48842277524d016f7594750248c06c55a524a71d.zip |
Fix for mock method feature checksubmit/tizen/20160229.121227accepted/tizen/wearable/20160302.003548accepted/tizen/tv/20160302.003532accepted/tizen/mobile/20160302.003516accepted/tizen/ivi/20160302.003605accepted/tizen/common/20160302.193431
Signed-off-by: kj7.sung <kj7.sung@samsung.com>
Change-Id: I86731401e85a963a67ffaf14b259c39df4110c3c
-rwxr-xr-x | src/locations.c | 5 |
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); |