Made AndroidLocationEngineImpl public (#1085)

Co-authored-by: Bart Louwers <bart@emeel.net>
This commit is contained in:
Robin
2023-05-05 17:04:21 +02:00
committed by GitHub
parent 6701aaf91f
commit 013bde5d69
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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<LocationListener> {
public class AndroidLocationEngineImpl implements LocationEngineImpl<LocationListener> {
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);
}