[android] Unify cache and offline databases

See #4362
This commit is contained in:
Antonio Zugaldia
2016-03-18 12:55:32 -04:00
committed by John Firebaugh
parent 90d271709f
commit 682b404bf6
3 changed files with 34 additions and 4 deletions

View File

@@ -76,7 +76,7 @@ NativeMapView::NativeMapView(JNIEnv *env, jobject obj_, float pixelRatio_, int a
}
fileSource = std::make_unique<mbgl::DefaultFileSource>(
mbgl::android::cachePath + "/mbgl-cache.db",
mbgl::android::cachePath + "/mbgl-offline.db",
mbgl::android::apkPath);
map = std::make_unique<mbgl::Map>(*this, *fileSource, MapMode::Continuous);