Repository navigation
[android] Unify cache and offline databases - #4383
Conversation
|
Noting for posterity that, with this change, the Android SDK continues to have multiple |
|
On the iOS side, #4377 ensures that the beta.1 offline database is preserved. It looks like this PR will not take that measure, since it changes the file name used by Options:
I like the idea of preserving existing beta.1 offline databases in one of the latter two ways, but I don't feel super strongly about it. What do you think? |
@jfirebaugh Good catch. Tackled by f5b750b. |
| @Override | ||
| public void run() { | ||
| try { | ||
| String path = context.getCacheDir().getAbsolutePath() + File.separator + DATABASE_NAME; |
There was a problem hiding this comment.
Now DATABASE_NAME needs to be replaced with "mbgl-cache.db" here.
|
👍 Tested and confirmed that an existing offline region is preserved, and then used when there is not network access. |
7fcfc2c to
682b404
Compare
Per #4362, we're now unifying the ambient and the offline databases in one location. This PR:
/cc: @jfirebaugh @1ec5