Fix compilation on Android

This commit is contained in:
François Grisez 2014-10-22 14:07:39 +02:00
parent 61419585b4
commit a742a5aa9b
2 changed files with 3 additions and 2 deletions

View file

@ -812,9 +812,10 @@ public:
env->CallVoidMethod(lcData->listener, lcData->configuringStateId, lcData->core, env->CallStaticObjectMethod(lcData->configuringStateClass,lcData->configuringStateFromIntId,(jint)status), message ? env->NewStringUTF(message) : NULL);
}
static void fileTransferProgressIndication(LinphoneCore *lc, LinphoneChatMessage *message, const LinphoneContent* content, size_t progress) {
static void fileTransferProgressIndication(LinphoneCore *lc, LinphoneChatMessage *message, const LinphoneContent* content, size_t offset, size_t total) {
JNIEnv *env = 0;
jobject jmsg;
size_t progress = (offset * 100) / total;
jint result = jvm->AttachCurrentThread(&env,NULL);
if (result != 0) {
ms_error("cannot attach VM");

@ -1 +1 @@
Subproject commit edb8e3a1732e1e94b750d546b21be2c968bca0cc
Subproject commit d051490ff070aece407149baa9a477d97031c1c6