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

Cancel download should remove currently downloaded map #1145

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Ph0tonic
Copy link
Contributor

@Ph0tonic Ph0tonic commented Jul 25, 2020

I had a look at the code of the offline plugin and find out what might cause the cancel download not to delete the currently downloading map.

This is a PR to fixes #189

Note : I have not been able to actually test that this fix the issue as there is no cancel button in the demo app but in any case what I changed is pretty straightforward and I strongly believe that the previous versions might prevent the map to be deleted.

Any comment and review is most welcome @tobrun, @LukasPaczos and @langsmith

@Ph0tonic Ph0tonic force-pushed the p0-offline-plugin-cancel-download branch from b678813 to e75a8a0 Compare July 28, 2020 11:14
@Ph0tonic
Copy link
Contributor Author

Ph0tonic commented Jul 29, 2020

I have finally been able to test it and it's working as expected. The problem happened only when the UUID of an OfflineDownloadOptions was bigger than an int and was converted to an int instead of keeping it as a long.

@LukasPaczos and @tobrun this PR is now definitely ready for a review 👍

@Ph0tonic
Copy link
Contributor Author

Hello,
Any updates on this ?
@mapbox/maps-android

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.

Cancel download should remove region definition
2 participants