summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorMert Tumer <merttumer@outlook.com>2018-08-03 07:13:00 -0700
committerTomaž Vajngerl <quikee@gmail.com>2018-08-07 14:27:16 +0200
commit27326e0f587c20d8dcf1595829233de1bd3fbe9e (patch)
tree02171feeb4deae1ab649f972b8401a7816f654b6 /android
parente4ed3d74084cb9acd8c5bb2d30cdc35d92def0f4 (diff)
tdf#119082 Exception wrong thread on Android Viewer
Change-Id: I58a8d104b24c7cf2d021e2dce700e25592c8a605 Signed-off-by: Mert Tumer <merttumer@outlook.com> Reviewed-on: https://gerrit.libreoffice.org/58563 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'android')
-rw-r--r--android/source/src/java/org/libreoffice/LOKitThread.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/android/source/src/java/org/libreoffice/LOKitThread.java b/android/source/src/java/org/libreoffice/LOKitThread.java
index d9a617654b17..846e6658d7cd 100644
--- a/android/source/src/java/org/libreoffice/LOKitThread.java
+++ b/android/source/src/java/org/libreoffice/LOKitThread.java
@@ -239,7 +239,12 @@ class LOKitThread extends Thread {
if (mTileProvider.isReady()) {
LOKitShell.showProgressSpinner(mContext);
updateZoomConstraints();
- refresh();
+ LOKitShell.getMainHandler().post(new Runnable() {
+ @Override
+ public void run() {
+ refresh();
+ }
+ });
LOKitShell.hideProgressSpinner(mContext);
} else {
closeDocument();