android/source/src/java/org/libreoffice/InvalidationHandler.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
New commits: commit 68ee5d5997197be3b087ed9f550da4dac6e21bef Author: Mert Tümer <merttum...@gmail.com> Date: Fri Apr 6 13:32:25 2018 +0300 tdf#116842 fix crashing when adding slides or spreadsheets Change-Id: I957133e468fe43edd0ed1d76cdd180f20d6a86ac Signed-off-by: Mert Tümer <merttum...@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/52493 Tested-by: Thorsten Behrens <thorsten.behr...@cib.de> Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de> diff --git a/android/source/src/java/org/libreoffice/InvalidationHandler.java b/android/source/src/java/org/libreoffice/InvalidationHandler.java index b33f678de90f..92e81febeb7c 100644 --- a/android/source/src/java/org/libreoffice/InvalidationHandler.java +++ b/android/source/src/java/org/libreoffice/InvalidationHandler.java @@ -251,10 +251,12 @@ public class InvalidationHandler implements Document.MessageCallback, Office.Mes } private void pageSizeChanged(String payload){ - String[] bounds = payload.split(","); - int pageWidth = Integer.parseInt(bounds[0]); - int pageHeight = Integer.parseInt(bounds[1].trim()); - LOKitShell.sendEvent(new LOEvent(LOEvent.PAGE_SIZE_CHANGED, pageWidth, pageHeight)); + if(mContext.getTileProvider().isTextDocument()){ + String[] bounds = payload.split(","); + int pageWidth = Integer.parseInt(bounds[0]); + int pageHeight = Integer.parseInt(bounds[1].trim()); + LOKitShell.sendEvent(new LOEvent(LOEvent.PAGE_SIZE_CHANGED, pageWidth, pageHeight)); + } } private void stateChanged(String payload) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits