Skip to content
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

Fix milestone / progress listener leaks from NavigationView #1552

Merged
merged 1 commit into from
Nov 29, 2018

Conversation

danesfeder
Copy link
Contributor

Fixes #1279

This leak was caused by a new ProgressChangeListener being added each time navigation was started with the NavigationView in EndNavigationActivity.

If we stop navigation, we should also remove the listeners if we require them when starting as well.

@codecov-io
Copy link

codecov-io commented Nov 28, 2018

Codecov Report

Merging #1552 into master will increase coverage by 0.27%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master    #1552      +/-   ##
============================================
+ Coverage     22.48%   22.75%   +0.27%     
- Complexity      687      689       +2     
============================================
  Files           182      182              
  Lines          8097     8102       +5     
  Branches        599      599              
============================================
+ Hits           1821     1844      +23     
+ Misses         6093     6075      -18     
  Partials        183      183

@danesfeder danesfeder requested review from Guardiola31337 and removed request for devotaaabel November 29, 2018 14:28
@danesfeder
Copy link
Contributor Author

danesfeder commented Nov 29, 2018

@devotaaabel transferring review ownership to @Guardiola31337 here while we bring offline home and so we can get it in this weeks release.

Copy link
Contributor

@Guardiola31337 Guardiola31337 left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

Thanks for squashing this 🐛 @danesfeder 🚢

@danesfeder danesfeder merged commit 07c853d into master Nov 29, 2018
@danesfeder danesfeder deleted the dan-listener-leak branch November 29, 2018 15:12
@Guardiola31337 Guardiola31337 mentioned this pull request Nov 30, 2018
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Defect to be fixed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants