Made AndroidLocationEngineImpl public (#1085)
Co-authored-by: Bart Louwers <bart@emeel.net>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user