mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-06 21:33:08 +00:00
Fix compilation on Android
This commit is contained in:
parent
61419585b4
commit
a742a5aa9b
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
Loading…
Add table
Reference in a new issue