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

[android] Fix is download complete #9913

Merged
merged 1 commit into from
Sep 7, 2017

Conversation

Guardiola31337
Copy link
Contributor

@Guardiola31337 Guardiola31337 commented Sep 5, 2017

Fixes #9908

  • Prevents calling observer->statusChanged(status); when the download is deactivated which caused two calls to onStatusChanged making status.isComplete() true twice as well.
  • Fixes OfflineRegionStatus#isComplete:
    • A download is complete when completedResourceCount and requiredResourceCount match and the downloadState is OfflineRegion.STATE_INACTIVE which prevents reporting is completed twice.

👀 @fabian-guerra @zugaldia

… and required resources match and the download state is inactive)
@Guardiola31337 Guardiola31337 force-pushed the pg-offline-on-status-changed-twice branch from d15463d to eb1c2ed Compare September 5, 2017 16:47
@Guardiola31337 Guardiola31337 changed the title Prevent calling on status changed when the download is deactivated [android] Fix is download complete Sep 5, 2017
@Guardiola31337 Guardiola31337 added this to the android-v5.1.4 milestone Sep 7, 2017
@Guardiola31337 Guardiola31337 merged commit 9ce7099 into master Sep 7, 2017
@Guardiola31337 Guardiola31337 deleted the pg-offline-on-status-changed-twice branch September 7, 2017 15:26
tobrun pushed a commit that referenced this pull request Sep 25, 2017
… and required resources match and the download state is inactive) (#9913)
@tobrun tobrun mentioned this pull request Sep 26, 2017
19 tasks
tobrun pushed a commit that referenced this pull request Sep 26, 2017
… and required resources match and the download state is inactive) (#9913)
mappy-mobile pushed a commit to Mappy/mapbox-gl-native that referenced this pull request Oct 3, 2017
….1.4

* release-ios-v3.6.0-android-v5.1.0: (36 commits)
  [android] [auto] Update properties to version 5.1.4 in preparation for build.
  [android] - latLngBounds test
  [android] - update changelog for 5.1.4 release.
  bump MAS version number to 2.2.3 (mapbox#9901)
  [android] fix is download complete (a download is complete when count and required resources match and the download state is inactive) (mapbox#9913)
  [android] - avoid adding duplicate points to bounds
  [android] Clear out mapCallback's OnMapReadyCallbacks on onDestroy
  [android] - harden offline region deletion
  Do not check connection if it is local request
  [android] - disable rotation gesture when pinch zooming
  macos-v0.5.1
  [ios] Bump podspec to 3.6.4 (mapbox#10059)
  [android, ios, macos] Updated translations
  [core] make sure tiles are not treated as complete until all worker operations completed
  [core] keep tiles renderable even if a subsequent error occurs
  [ios] Be sure to get a BOOL value for nullable dict keys
  iosv3.6.3 podspec bump (mapbox#10008)
  [ios, macos] Deprecate trafficDayStyleURL and trafficNightStyleURL (mapbox#9918)
  [ios] Use constraints to manage ornament view placement (again)  (mapbox#9995)
  [ios] Canned spam coming from Transifex
  ...

# Conflicts:
#	platform/android/MapboxGLAndroidSDK/proguard-rules.pro
#	platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapGestureDetector.java
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android bug offline
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants