Skip to content

Commit

Permalink
Fixes bug where activity is leaked
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanbeusekom committed Feb 7, 2024
1 parent 14acc86 commit ea54bac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
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.5.2

* Fixes a bug where the Android `activity` is leaked when the `activiy` is detached from the Flutter application.

## 4.5.1

* Fixes a bug where the Position class properties were not set correctly.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) {

@Override
public void onAttachedToActivity(@NonNull ActivityPluginBinding binding) {

Log.d(TAG, "Attaching Geolocator to activity");
this.pluginBinding = binding;
registerListeners();
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.5.1
version: 4.5.2

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

0 comments on commit ea54bac

Please sign in to comment.