diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-06-28 19:21:49 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-06-30 14:48:03 +0200 |
commit | c72d300ba0fa6eb3a496bdd8f3bbd3baa1b0f70e (patch) | |
tree | 2bd1afb40f219d96fc05f3c0a9fb0883253a1e27 /android/Bootstrap/src | |
parent | db89e5ff812e2b807476cdf0a10cd81a3040d79b (diff) |
android: Make the extract_files() part of setup / init.
We need to have the files extracted before we attempt to initialize
LibreOfficeKit (call libreofficekit_hook), otherwise the .rdb's are not there.
Change-Id: Ib49db7e945a709d18a063eb488a27df18fef542b
Diffstat (limited to 'android/Bootstrap/src')
-rw-r--r-- | android/Bootstrap/src/org/libreoffice/android/Bootstrap.java | 6 | ||||
-rw-r--r-- | android/Bootstrap/src/org/libreoffice/android/LibreOfficeKit.java | 10 |
2 files changed, 2 insertions, 14 deletions
diff --git a/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java b/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java index 13d1a23fdfa9..89766e62cf89 100644 --- a/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java +++ b/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java @@ -37,9 +37,6 @@ public final class Bootstrap String cacheDir, String apkFile); - // Extracts files in the .apk that need to be extraced into the app's tree - static native void extract_files(); - // Wrapper for getpid() public static native int getpid(); @@ -101,9 +98,6 @@ public final class Bootstrap activity.getApplication().getPackageResourcePath())) return; - // Extract files from the .apk that can't be used mmapped directly from it - extract_files(); - // If we notice that a fonts.conf file was extracted, automatically // set the FONTCONFIG_FILE env var. InputStream i; diff --git a/android/Bootstrap/src/org/libreoffice/android/LibreOfficeKit.java b/android/Bootstrap/src/org/libreoffice/android/LibreOfficeKit.java index e7507d5a1dcf..58d6c500a17f 100644 --- a/android/Bootstrap/src/org/libreoffice/android/LibreOfficeKit.java +++ b/android/Bootstrap/src/org/libreoffice/android/LibreOfficeKit.java @@ -26,7 +26,7 @@ public final class LibreOfficeKit { } - private static String TAG = "lo-bootstrap"; + private static String TAG = "LibreOfficeKit"; // Native methods in this class are all implemented in // sal/android/lo-bootstrap.c as the lo-bootstrap library is loaded with @@ -37,9 +37,6 @@ public final class LibreOfficeKit String cacheDir, String apkFile); - // Extracts files in the .apk that need to be extraced into the app's tree - static native void extract_files(); - /* // Wrapper for getpid() public static native int getpid(); @@ -92,7 +89,7 @@ public final class LibreOfficeKit ApplicationInfo ai = activity.getApplicationInfo(); dataDir = ai.dataDir; - Log.i(TAG, String.format("dataDir=%s\n", dataDir)); + Log.i(TAG, String.format("Initializing LibreOfficeKit, dataDir=%s\n", dataDir)); redirect_stdio(true); @@ -101,9 +98,6 @@ public final class LibreOfficeKit activity.getApplication().getPackageResourcePath())) return; - // Extract files from the .apk that can't be used mmapped directly from it - extract_files(); - // If we notice that a fonts.conf file was extracted, automatically // set the FONTCONFIG_FILE env var. InputStream i; |