Skip to content

Commit ea54bac

Browse files
committed
Fixes bug where activity is leaked
1 parent 14acc86 commit ea54bac

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

geolocator_android/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 4.5.2
2+
3+
* Fixes a bug where the Android `activity` is leaked when the `activiy` is detached from the Flutter application.
4+
15
## 4.5.1
26

37
* Fixes a bug where the Position class properties were not set correctly.

geolocator_android/android/src/main/java/com/baseflow/geolocator/GeolocatorPlugin.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) {
8888

8989
@Override
9090
public void onAttachedToActivity(@NonNull ActivityPluginBinding binding) {
91-
9291
Log.d(TAG, "Attaching Geolocator to activity");
9392
this.pluginBinding = binding;
9493
registerListeners();

geolocator_android/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: geolocator_android
22
description: Geolocation plugin for Flutter. This plugin provides the Android implementation for the geolocator.
33
repository: https://github.com/baseflow/flutter-geolocator/tree/main/geolocator_android
44
issue_tracker: https://github.com/baseflow/flutter-geolocator/issues?q=is%3Aissue+is%3Aopen
5-
version: 4.5.1
5+
version: 4.5.2
66

77
environment:
88
sdk: ">=2.15.0 <4.0.0"

0 commit comments

Comments
 (0)