summaryrefslogtreecommitdiff
path: root/android/cpp/native_map_view.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'android/cpp/native_map_view.cpp')
-rw-r--r--android/cpp/native_map_view.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/android/cpp/native_map_view.cpp b/android/cpp/native_map_view.cpp
index 71db99ff8a..bf9a3a0532 100644
--- a/android/cpp/native_map_view.cpp
+++ b/android/cpp/native_map_view.cpp
@@ -52,9 +52,14 @@ void log_gl_string(GLenum name, const char *label) {
}
}
+// Returns the path to the default cache database on this system.
+std::string defaultCacheDatabase() {
+ return mbgl::android::cachePath + "/mbgl-cache.db";
+}
+
NativeMapView::NativeMapView(JNIEnv *env, jobject obj_)
: mbgl::View(*this),
- fileSource(mbgl::platform::defaultCacheDatabase()),
+ fileSource(defaultCacheDatabase()),
map(*this, fileSource) {
mbgl::Log::Debug(mbgl::Event::Android, "NativeMapView::NativeMapView");