summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2019-02-19 09:13:56 +0100
committerJan Holesovsky <kendy@collabora.com>2019-02-19 10:56:58 +0100
commita9fc9ee63ac6557ba3400145d6862850b6cb832e (patch)
treef438f872b82bde637f9c4848af16a556870ede3a /android
parent91280ea90565dcbd81e77f3ed74e2ac2039a91f4 (diff)
android: Cannot read the assets directly, use the unpack instead.
Change-Id: I89818b122757b0f77a71c68e67cb2a1a27f2c0fb
Diffstat (limited to 'android')
-rw-r--r--android/app/src/main/java/org/libreoffice/androidapp/MainActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/app/src/main/java/org/libreoffice/androidapp/MainActivity.java b/android/app/src/main/java/org/libreoffice/androidapp/MainActivity.java
index a2027d611..564df1911 100644
--- a/android/app/src/main/java/org/libreoffice/androidapp/MainActivity.java
+++ b/android/app/src/main/java/org/libreoffice/androidapp/MainActivity.java
@@ -124,7 +124,7 @@ public class MainActivity extends AppCompatActivity {
String cacheDir = getApplication().getCacheDir().getAbsolutePath();
String apkFile = getApplication().getPackageResourcePath();
- String urlToLoad = "file:///assets/hello-world.odt";
+ String urlToLoad = "file://" + dataDir + "/hello-world.odt";
createLOOLWSD(dataDir, cacheDir, apkFile, assetManager, urlToLoad);