diff options
-rw-r--r-- | android/src/com/mapswithme/maps/location/LocationService.java | 5 | ||||
-rw-r--r-- | platform/location.hpp | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/android/src/com/mapswithme/maps/location/LocationService.java b/android/src/com/mapswithme/maps/location/LocationService.java index d1cd60ffe3..2c2c5812b2 100644 --- a/android/src/com/mapswithme/maps/location/LocationService.java +++ b/android/src/com/mapswithme/maps/location/LocationService.java @@ -28,8 +28,9 @@ public class LocationService implements LocationListener, SensorEventListener, W /// These constants should correspond to values defined in platform/location.hpp /// Leave 0-value as no any error. - public static final int ERROR_DENIED = 1; - public static final int ERROR_GPS_OFF = 2; + public static final int ERROR_NOT_SUPPORTED = 1; + public static final int ERROR_DENIED = 2; + public static final int ERROR_GPS_OFF = 3; public interface Listener { diff --git a/platform/location.hpp b/platform/location.hpp index bd742e333a..cbfbc82475 100644 --- a/platform/location.hpp +++ b/platform/location.hpp @@ -6,11 +6,13 @@ namespace location { + /// @note Do not change values of this constants. enum TLocationError { ENoError = 0, - EDenied = 1, - EGPSIsOff = 2 + ENotSupported, + EDenied, + EGPSIsOff }; enum TLocationSource |