Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Calling delete on an offline region doesn't actually delete it #386

Closed
Pxddy opened this issue May 16, 2020 · 1 comment
Closed

Calling delete on an offline region doesn't actually delete it #386

Pxddy opened this issue May 16, 2020 · 1 comment
Labels

Comments

@Pxddy
Copy link

Pxddy commented May 16, 2020

Platform: Android
Mapbox SDK version: Android: 9.2.0 and i guess 9.1.0 is affected too

Steps to trigger behavior

  1. Keep automatic database packing enabled
  2. Create an offline region with raster tiles
  3. Delete the region by calling the delete method on it

Expected behavior

This should delete the region and all tiles should be removed. Since the automatic database packing is enabled by default and we haven't changed this setting, the used disc space should be freed.

Actual behavior

The region isn't removed completely. Also the disc space isn't freed.
It is even possible to recreate the region without re-downloading the tiles.

I also noticed after some testing that calling clearAmbientCache() after deleting a region finally removes all tiles. So I guess this issue is caused by this change: mapbox/mapbox-gl-native#15622

Best regards
Pxddy

@stale stale bot added the archived label Dec 25, 2020
@stale
Copy link

stale bot commented Dec 26, 2020

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale bot closed this as completed Dec 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant