Skip to content

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

Merged
merged 19 commits into from
Jun 11, 2021

Conversation

florissmit1
Copy link
Contributor

@florissmit1 florissmit1 commented Apr 29, 2021

✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)

Bug fix

⤵️ What is the current behavior?

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

  • I made sure all projects build.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
  • I updated CHANGELOG.md to add a description of the change.
  • I followed the style guide lines (code style guide).
  • I updated the relevant documentation.
  • I rebased onto current master.

@florissmit1 florissmit1 changed the title Issue/703 Remove original positionStream when new positionStream is initialized Apr 30, 2021
Floris Smit and others added 4 commits June 4, 2021 13:43
@codecov
Copy link

codecov bot commented Jun 7, 2021

Codecov Report

Merging #723 (f9abb6f) into master (8b683ba) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #723   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           16        16           
  Lines          226       238   +12     
=========================================
+ Hits           226       238   +12     
Impacted Files Coverage Δ
...src/implementations/method_channel_geolocator.dart 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8b683ba...f9abb6f. Read the comment docs.

Copy link
Member

@mvanbeusekom mvanbeusekom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants