Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] #3891 - add extra logs
Browse files Browse the repository at this point in the history
  • Loading branch information
zugaldia committed Feb 19, 2016
1 parent f2c7374 commit 1d4aa71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform/android/src/jni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1734,11 +1734,12 @@ void JNICALL createOfflineRegion(JNIEnv *env, jobject obj, jlong defaultFileSour
std::string message = mbgl::util::toString(error);
env->CallVoidMethod(createCallback, createOnErrorMethodId, std_string_to_jstring(env, message));
} else if (region) {
mbgl::Log::Debug(mbgl::Event::JNI, "Region created.");
mbgl::Log::Error(mbgl::Event::JNI, "Region created.");
jobject jRegion = env->NewObject(offlineRegionClass, offlineRegionConstructorId, region->getID());
// env->SetLongField(jRegion, offlineRegionIdId, region->getID());

// This currently causes an exception on Android
mbgl::Log::Error(mbgl::Event::JNI, "Triggering Java callback.");
env->CallVoidMethod(createCallback, createOnCreateMethodId, jRegion);
}

Expand Down

0 comments on commit 1d4aa71

Please sign in to comment.