Skip to content

Commit

Permalink
Fix 1341 (#1343)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenWeener authored Sep 26, 2023
1 parent 8492053 commit c941b6c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions geolocator_android/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 4.3.1

- Suppresses a deprecation warning for `LocationListenerCompat.onStatusChanged` when building for Android.

## 4.3.0

* Includes `altitudeAccuracy` and `headingAccuracy` in `Position`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,13 @@ public synchronized void onLocationChanged(Location location) {
}
}

/**
* This callback will never be invoked on Android Q and above, and providers can be considered as
* always in the {@link android.location.LocationProvider#AVAILABLE} state.
* See the <a href=https://developer.android.com/reference/android/location/LocationListener#onStatusChanged(java.lang.String,%20int,%20android.os.Bundle)>Android documentation</a>
* for more information.
*/
@SuppressWarnings({"deprecation", "RedundantSuppression"})
@TargetApi(28)
@Override
public void onStatusChanged(@NonNull String provider, int status, Bundle extras) {
Expand Down
2 changes: 1 addition & 1 deletion geolocator_android/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: geolocator_android
description: Geolocation plugin for Flutter. This plugin provides the Android implementation for the geolocator.
repository: https://github.com/baseflow/flutter-geolocator/tree/main/geolocator_android
issue_tracker: https://github.com/baseflow/flutter-geolocator/issues?q=is%3Aissue+is%3Aopen
version: 4.3.0
version: 4.3.1

environment:
sdk: ">=2.15.0 <4.0.0"
Expand Down

0 comments on commit c941b6c

Please sign in to comment.