Fix for mock method feature check 38/60638/1 accepted/tizen/common/20160302.193431 accepted/tizen/ivi/20160302.003605 accepted/tizen/mobile/20160302.003516 accepted/tizen/tv/20160302.003532 accepted/tizen/wearable/20160302.003548 submit/tizen/20160229.121227
authorkj7.sung <kj7.sung@samsung.com>
Mon, 29 Feb 2016 12:08:50 +0000 (21:08 +0900)
committerkj7.sung <kj7.sung@samsung.com>
Mon, 29 Feb 2016 12:09:16 +0000 (21:09 +0900)
Signed-off-by: kj7.sung <kj7.sung@samsung.com>
Change-Id: I86731401e85a963a67ffaf14b259c39df4110c3c

src/locations.c

index 707c615..124ee3d 100755 (executable)
@@ -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);