summaryrefslogtreecommitdiff
path: root/platform/android/src/file_source.hpp
diff options
context:
space:
mode:
authorŁukasz Paczos <lukas.paczos@gmail.com>2019-02-19 13:23:49 +0100
committerŁukasz Paczos <lukasz.paczos@mapbox.com>2019-03-13 18:28:04 +0100
commitb7702995fc60bfe9d5c3ddcff8b38deca97d2ced (patch)
tree44de8cf84856f5d71cbb792de3d7f89941035fa7 /platform/android/src/file_source.hpp
parent3f7b70fdb0e40d0cbbaea17505878c72491e3cd2 (diff)
downloadqtlocation-mapboxgl-b7702995fc60bfe9d5c3ddcff8b38deca97d2ced.tar.gz
[android] when changing the resource path, recreate database instead of the whole FileSource
Diffstat (limited to 'platform/android/src/file_source.hpp')
-rw-r--r--platform/android/src/file_source.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/android/src/file_source.hpp b/platform/android/src/file_source.hpp
index 572ac647b7..575702120e 100644
--- a/platform/android/src/file_source.hpp
+++ b/platform/android/src/file_source.hpp
@@ -39,6 +39,8 @@ public:
void setResourceTransform(jni::JNIEnv&, const jni::Object<FileSource::ResourceTransformCallback>&);
+ void setResourceCachePath(jni::JNIEnv&, const jni::String&);
+
void resume(jni::JNIEnv&);
void pause(jni::JNIEnv&);
@@ -52,6 +54,7 @@ public:
static void registerNative(jni::JNIEnv&);
private:
+ const std::string DATABASE_FILE = "/mbgl-offline.db";
optional<int> activationCounter;
std::unique_ptr<Actor<ResourceTransform>> resourceTransform;
std::unique_ptr<mbgl::DefaultFileSource> fileSource;