summaryrefslogtreecommitdiff
path: root/android/cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-01-21 19:30:58 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-02-04 10:49:05 +0100
commit8a1fce547e9ad0bf750418c844c9b23a3ee6d8dd (patch)
treee3f0e8f4b16071667c6a4fdf706740335500dbc6 /android/cpp
parent5503aef6907b1fea74d6bdbe696f02b9f016f752 (diff)
downloadqtlocation-mapboxgl-8a1fce547e9ad0bf750418c844c9b23a3ee6d8dd.tar.gz
rearrange tests and add storage tests
Diffstat (limited to 'android/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");