diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-10-04 15:47:44 +0200 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-10-04 17:53:00 +0200 |
commit | b43b980b1e44e3ad0b4c38d2d65cdb6dbfb77add (patch) | |
tree | fc72c87dd2deab67cfee572eddb779f7906387cc /android | |
parent | 450a4f46d9de0f2b2d7b4232e7fef380dacdfcd0 (diff) |
androdi: set TileProvider only when document is ready
Change-Id: Iada0e4513cc00248f45c97bfecbc91590e80a437
Diffstat (limited to 'android')
-rw-r--r-- | android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java index 398389b43373..528f419d7c25 100644 --- a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java +++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java @@ -74,10 +74,10 @@ public class LOKitThread extends Thread { } mTileProvider = TileProviderFactory.create(mController, filename); - mLayerClient.setTileProvider(mTileProvider); - boolean isReady = mTileProvider.isReady(); if (isReady) { + mLayerClient.setTileProvider(mTileProvider); + LOKitShell.showProgressSpinner(); refresh(); LOKitShell.hideProgressSpinner(); |