Commit 4d454fdf authored by Sylvain Berfini's avatar Sylvain Berfini 🐮
Browse files

Fix importFriends JNI method

parent aa2a82ce
......@@ -1947,8 +1947,9 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_addFriend(JNIEnv* env
extern "C" jint Java_org_linphone_core_LinphoneCoreImpl_importFriendsFromVCardFile(JNIEnv* env, jobject thiz, jlong lc, jstring jpath) {
const char* path = env->GetStringUTFChars(jpath, NULL);
return linphone_core_import_friends_from_vcard4_file((LinphoneCore*)lc, path);
int count = linphone_core_import_friends_from_vcard4_file((LinphoneCore*)lc, path);
env->ReleaseStringUTFChars(jpath, path);
return count;
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_exportFriendsToVCardFile(JNIEnv* env, jobject thiz, jlong lc, jstring jpath) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment