diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-07-28 08:53:20 +0200 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-08-03 22:42:19 +0200 |
commit | f944bb4ec4d2a65759a74260b11fb78dbf0e6a39 (patch) | |
tree | 2b098eb23d81943ec9108cda2a8c4e64959fe77a | |
parent | LOAndroid3: don't update viewport if scrolled by (0,0) (diff) | |
download | core-f944bb4ec4d2a65759a74260b11fb78dbf0e6a39.tar.gz core-f944bb4ec4d2a65759a74260b11fb78dbf0e6a39.zip |
LOAndroid3: Fix mTileWidth / mTileHeight initialization
Change-Id: If2af5afa3abff6da45e726dd8c28216e6f939caf
-rw-r--r-- | android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java index e7931582f93a..e39c51b51e39 100644 --- a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java +++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java @@ -39,6 +39,9 @@ public class LOKitTileProvider implements TileProvider { public LOKitTileProvider(LayerController layerController, String input) { mLayerController = layerController; mDPI = (double) LOKitShell.getDpi(); + mTileWidth = pixelToTwip(TILE_SIZE, mDPI); + mTileHeight = pixelToTwip(TILE_SIZE, mDPI); + LibreOfficeKit.putenv("SAL_LOG=+WARN+INFO-INFO.legacy.osl-INFO.i18nlangtag"); LibreOfficeKit.init(LibreOfficeMainActivity.mAppContext); @@ -53,8 +56,6 @@ public class LOKitTileProvider implements TileProvider { if (mDocument.getParts() >= 1) { mDocument.setPart(1); } - mTileWidth = pixelToTwip(TILE_SIZE, mDPI); - mTileHeight = pixelToTwip(TILE_SIZE, mDPI); } } |