-
-
Notifications
You must be signed in to change notification settings - Fork 697
Remove original positionStream when new positionStream is initialized #723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
# Conflicts: # geolocator_platform_interface/CHANGELOG.md # geolocator_platform_interface/pubspec.yaml
Codecov Report
@@ Coverage Diff @@
## master #723 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 16 16
Lines 226 238 +12
=========================================
+ Hits 226 238 +12
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Thanks!
✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)
Bug fix
When initializing a new positionStream, after closing the previous positionStream, the given distanceFilter or/and timeInterval are not updated. The first positionStream will always be returned, even if a new positionStream is initialized.
🆕 What is the new behavior (if this is a feature change)?
When positionStream.cancel() is executed, the old positionStream will be deleted. So when initializing a new positionStream, the new positionStream is returned.
💥 Does this PR introduce a breaking change?
No
🐛 Recommendations for testing
Initialize two positionStreams with different parameters (such as distanceFilter or timeInterval) and compare the results.
📝 Links to relevant issues/docs
[#703]
🤔 Checklist before submitting
master
.