summaryrefslogtreecommitdiff
path: root/platform/android/src/mapbox.hpp
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2019-10-04 11:56:26 +0300
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2019-10-04 13:18:23 +0300
commit198e3453394ccb2b1f7db72d1858cfd18e302a1e (patch)
treedaff6ffd927fe6aa904b07970da91f869fe2fdc0 /platform/android/src/mapbox.hpp
parent946b9d22818c76325ce6f5bf4804494f461f2c0a (diff)
downloadqtlocation-mapboxgl-198e3453394ccb2b1f7db72d1858cfd18e302a1e.tar.gz
[android] Check if Mapbox instance exists before creating default file source
This check is needed for mbgl-benchmark target, as it does not require Mapbox instance, nor Android asset manager.
Diffstat (limited to 'platform/android/src/mapbox.hpp')
-rw-r--r--platform/android/src/mapbox.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/android/src/mapbox.hpp b/platform/android/src/mapbox.hpp
index 2d9a657fa1..813f5bf174 100644
--- a/platform/android/src/mapbox.hpp
+++ b/platform/android/src/mapbox.hpp
@@ -10,6 +10,7 @@ namespace android {
class Mapbox {
public:
static constexpr auto Name() { return "com/mapbox/mapboxsdk/Mapbox"; };
+ static jboolean hasInstance(jni::JNIEnv&);
static jni::Local<jni::Object<AssetManager>> getAssetManager(jni::JNIEnv&);
static void registerNative(jni::JNIEnv&);
};