diff --git a/platform/android/CHANGELOG.md b/platform/android/CHANGELOG.md index c84fb54d3..27c35a182 100644 --- a/platform/android/CHANGELOG.md +++ b/platform/android/CHANGELOG.md @@ -11,6 +11,7 @@ MapLibre welcomes participation and contributions from everyone. Please read [`C ### 🐞 Bug fixes * Fix regression in CameraUpdateFactory#zoomOut ([#1035](https://github.com/maplibre/maplibre-native/pull/1035)) +* * `AndroidLocationEngineImpl` made public to create custom `LocationEngineProvider`([#850](https://github.com/maplibre/maplibre-native/pull/850)) ### ⛵ Dependencies diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/engine/AndroidLocationEngineImpl.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/engine/AndroidLocationEngineImpl.java index c51a020cd..fed2712d0 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/engine/AndroidLocationEngineImpl.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/engine/AndroidLocationEngineImpl.java @@ -19,13 +19,13 @@ import androidx.annotation.VisibleForTesting; * A location engine that uses core android.location and has no external dependencies * https://developer.android.com/guide/topics/location/strategies.html */ -class AndroidLocationEngineImpl implements LocationEngineImpl { +public class AndroidLocationEngineImpl implements LocationEngineImpl { private static final String TAG = "AndroidLocationEngine"; final LocationManager locationManager; String currentProvider = LocationManager.PASSIVE_PROVIDER; - AndroidLocationEngineImpl(@NonNull Context context) { + public AndroidLocationEngineImpl(@NonNull Context context) { locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); }