diff options
-rw-r--r-- | android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationServices.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationServices.java b/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationServices.java index 7821ede640..74a68c3722 100644 --- a/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationServices.java +++ b/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationServices.java @@ -41,7 +41,7 @@ public class LocationServices implements com.mapzen.android.lost.api.LocationLis if (context == null) { throw new NullPointerException("Context required for accessing LocationServices"); } - instance = new LocationServices(context); + instance = new LocationServices(context.getApplicationContext()); } return instance; } |