-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Conversation
ef5bc00
to
e7983f4
Compare
* Only resources and tiles that belong to a region will be copied over. Identical | ||
* regions will be flattened into a single new region in the main database. | ||
* <p> | ||
* A callback with a `MapboxOfflineTileCountExceededException` error will be invoked if |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How/Where is this handled? I don't see any reference to this exception type anywhere else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, we pushing the error message through MergeOfflineRegionsCallback#onError
. The doc needs to be updated.
...rm/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineManager.java
Show resolved
Hide resolved
218e809
to
39e549a
Compare
This one is ready for a review but still relies on #12876 and waits for a fix for |
Debugged the crash and found that it was crashing with |
|
f84bd9e
to
8163503
Compare
I haven't noticed these issues locally or during firebase runs and capturing from an internal convo that it might be dependent on other variables like run profiles.
Each firebase run is performed on a clean install, so we should exercise the merging code with every push. The instrumentation test is also deleting the region, the only things that persist are tiles. When it comes to the example activity, the region can be removed via the |
yeah, but it means that local testing will be much harder. |
True, I can try removing the database when exiting the test activity. |
Removing database would require recreating the singleton |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
… mode for MergeOfflineRegionsActivity
d361e72
to
873b502
Compare
Closes #12692.