summaryrefslogtreecommitdiff
path: root/android/cpp
diff options
context:
space:
mode:
authorLeith Bade <leith@mapbox.com>2014-12-04 08:11:09 +1100
committerLeith Bade <leith@mapbox.com>2014-12-04 08:11:09 +1100
commit2b06d905f60b3a5e774fd519f458a384a3135343 (patch)
tree313a2de860bf6d335728bcdc8ce66efcd1e83c53 /android/cpp
parent991a74774e1e835ff2277b3997d60f09245593dd (diff)
downloadqtlocation-mapboxgl-2b06d905f60b3a5e774fd519f458a384a3135343.tar.gz
Fix Map with CachingHTTPFileSource
Diffstat (limited to 'android/cpp')
-rw-r--r--android/cpp/native_map_view.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/cpp/native_map_view.cpp b/android/cpp/native_map_view.cpp
index 1e387e0fa0..43bc955988 100644
--- a/android/cpp/native_map_view.cpp
+++ b/android/cpp/native_map_view.cpp
@@ -88,7 +88,7 @@ void MBGLView::notify_map_change(mbgl::MapChange /* change */, mbgl::timestamp /
nativeView.notifyMapChange();
}
-NativeMapView::NativeMapView(JNIEnv* env, jobject obj_) : view(*this), map(view) {
+NativeMapView::NativeMapView(JNIEnv* env, jobject obj_) : view(*this), fileSource(mbgl::platform::defaultCacheDatabase()), map(view, fileSource) {
mbgl::Log::Debug(mbgl::Event::Android, "NativeMapView::NativeMapView");
assert(env != nullptr);