From 83268481d1ba5a69586cddc06b82f86e3b9dfdd2 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 16 Oct 2014 13:01:35 +0300 Subject: android: Stopgap: _exit() is better than a hang Change-Id: Iaada020e85a8d2557e270f7d1514f2260ffb2af0 --- desktop/source/lib/lokandroid.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'desktop') diff --git a/desktop/source/lib/lokandroid.cxx b/desktop/source/lib/lokandroid.cxx index 6a0ba2a41648..15c41c444cb1 100644 --- a/desktop/source/lib/lokandroid.cxx +++ b/desktop/source/lib/lokandroid.cxx @@ -7,6 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include #include #include @@ -68,6 +69,9 @@ extern "C" SAL_JNI_EXPORT void JNICALL Java_org_libreoffice_kit_Office_destroy(J { LibreOfficeKit* pLibreOfficeKit = getHandle(pEnv, aObject); pLibreOfficeKit->pClass->destroy(pLibreOfficeKit); + // Stopgap fix: _exit() to force the OS to restart the LO activity. + // Better than to hang. + _exit(0); } extern "C" SAL_JNI_EXPORT jlong JNICALL Java_org_libreoffice_kit_Office_documentLoadNative(JNIEnv* pEnv, jobject aObject, jstring documentPath) -- cgit