From c8ae1787c6315bd7a8513656626132f1140e77f9 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 1 Oct 2014 12:17:31 +0200 Subject: Blind fix for Android Change-Id: If997720635f99726e14c00132308529f96e639c8 --- sal/osl/unx/thread.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sal/osl/unx/thread.cxx b/sal/osl/unx/thread.cxx index 739dd180f727..f23f55bdee7c 100644 --- a/sal/osl/unx/thread.cxx +++ b/sal/osl/unx/thread.cxx @@ -233,14 +233,14 @@ static void* osl_thread_start_Impl (void* pData) { #ifdef ANDROID JNIEnv* env = 0; - int res = (*lo_get_javavm())->AttachCurrentThread(lo_get_javavm(), &env, NULL); + int res = (*lo_get_javavm()).AttachCurrentThread(&env, NULL); __android_log_print(ANDROID_LOG_INFO, "LibreOffice", "New sal thread started and attached res=%d", res); #endif /* call worker function */ pImpl->m_WorkerFunction(pImpl->m_pData); #ifdef ANDROID - res = (*lo_get_javavm())->DetachCurrentThread(lo_get_javavm()); + res = (*lo_get_javavm()).DetachCurrentThread(); __android_log_print(ANDROID_LOG_INFO, "LibreOffice", "Detached finished sal thread res=%d", res); #endif } -- cgit