diff options
Diffstat (limited to 'android/Bootstrap/src/org/libreoffice/kit/LibreOfficeKit.java')
-rw-r--r-- | android/Bootstrap/src/org/libreoffice/kit/LibreOfficeKit.java | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/android/Bootstrap/src/org/libreoffice/kit/LibreOfficeKit.java b/android/Bootstrap/src/org/libreoffice/kit/LibreOfficeKit.java index b2fb5e12053a..1590fd99b100 100644 --- a/android/Bootstrap/src/org/libreoffice/kit/LibreOfficeKit.java +++ b/android/Bootstrap/src/org/libreoffice/kit/LibreOfficeKit.java @@ -64,8 +64,7 @@ public final class LibreOfficeKit Log.i(LOGTAG, String.format("Initializing LibreOfficeKit, dataDir=%s\n", dataDir)); redirectStdio(true); - // ToDo: ugly workaround - find out why it segfaults with existing cachedir - deleteRecursive(activity.getApplication().getCacheDir()); + String cacheDir = activity.getApplication().getCacheDir().getAbsolutePath(); String apkFile = activity.getApplication().getPackageResourcePath(); @@ -93,20 +92,6 @@ public final class LibreOfficeKit } initializeDone = true; } - /** - * Deletes files and recursively deletes directories. - * - * @param file - * File or directory to be deleted. - */ - private static void deleteRecursive(File file) { - Log.d(LOGTAG, "deleting cacheDir recursively - this is only a workaround - fixme please"); - if (file.isDirectory()) { - for (File child : file.listFiles()) - deleteRecursive(child); - } - file.delete(); - } // Now with static loading we always have all native code in one native // library which we always call liblo-native-code.so, regardless of the |