diff options
Diffstat (limited to 'android/source/src/java/org/libreoffice/LOKitThread.java')
-rw-r--r-- | android/source/src/java/org/libreoffice/LOKitThread.java | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/android/source/src/java/org/libreoffice/LOKitThread.java b/android/source/src/java/org/libreoffice/LOKitThread.java index 846e6658d7cd..c9d1fa0508bd 100644 --- a/android/source/src/java/org/libreoffice/LOKitThread.java +++ b/android/source/src/java/org/libreoffice/LOKitThread.java @@ -183,15 +183,9 @@ class LOKitThread extends Thread { private void updateZoomConstraints() { if (mTileProvider == null) return; mLayerClient = mContext.getLayerClient(); - if (mTileProvider.isSpreadsheet()) { - // Calc has a fixed zoom at 1x and doesn't allow zooming for now - mLayerClient.setZoomConstraints(new ZoomConstraints(false, 1f, 0f, 0f)); - } else { - // Set min zoom to the page width so that you cannot zoom below page width - // applies to all types of document; in the future spreadsheets may be singled out - float minZoom = mLayerClient.getViewportMetrics().getWidth()/mTileProvider.getPageWidth(); - mLayerClient.setZoomConstraints(new ZoomConstraints(true, 1f, minZoom, 0f)); - } + // Set min zoom to the page width so that you cannot zoom below page width + final float minZoom = mLayerClient.getViewportMetrics().getWidth()/mTileProvider.getPageWidth(); + mLayerClient.setZoomConstraints(new ZoomConstraints(true, 1f, minZoom, 0f)); } |