[android] Create a RunLoop for the main thread
This commit is contained in:
committed by
John Firebaugh
parent
40e590b681
commit
02db7fa852
@@ -21,6 +21,7 @@
|
||||
#include <mbgl/storage/network_status.hpp>
|
||||
#include <mbgl/util/exception.hpp>
|
||||
#include <mbgl/util/string.hpp>
|
||||
#include <mbgl/util/run_loop.hpp>
|
||||
|
||||
#include <jni/jni.hpp>
|
||||
|
||||
@@ -1701,6 +1702,8 @@ extern "C" JNIEXPORT jint JNI_OnLoad(JavaVM *vm, void *reserved) {
|
||||
|
||||
jni::JNIEnv& env = jni::GetEnv(*vm, jni::jni_version_1_6);
|
||||
|
||||
static mbgl::util::RunLoop mainRunLoop;
|
||||
|
||||
mbgl::android::RegisterNativeHTTPRequest(env);
|
||||
|
||||
latLngClass = &jni::FindClass(env, "com/mapbox/mapboxsdk/geometry/LatLng");
|
||||
|
||||
Reference in New Issue
Block a user