diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-02-04 20:33:52 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-02-09 08:12:09 +0100 |
commit | 9b482b325baaae4a456073476b5edc68bc62e184 (patch) | |
tree | a813a981bec3c3b43511f3fcf41498804dbd43c5 /android | |
parent | b25dd857b42352cce6174744a5350ab2c0566c16 (diff) |
android: Initialize for tiled rendering earlier.
We need to prepare the document ASAP, otherwise we will get zero size when eg.
presentation is switched to Notes view.
Change-Id: I0d3ccea18058052994d91868ec1346c5de25faff
Diffstat (limited to 'android')
-rw-r--r-- | android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java index 60c3e9ce8df7..60e57e6eed91 100644 --- a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java +++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java @@ -71,6 +71,9 @@ public class LOKitTileProvider implements TileProvider, Document.MessageCallback Log.i(LOGTAG, "====> mDocument = " + mDocument); + if (mDocument != null) + mDocument.initializeForRendering(); + if (checkDocument()) { postLoad(); mIsReady = true; @@ -78,7 +81,6 @@ public class LOKitTileProvider implements TileProvider, Document.MessageCallback } public void postLoad() { - mDocument.initializeForRendering(); mDocument.setMessageCallback(this); int parts = mDocument.getParts(); |