Kaydet (Commit) 9b482b32 authored tarafından Jan Holesovsky's avatar Jan Holesovsky Kaydeden (comit) Miklos Vajna

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
üst b25dd857
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment