summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMert Tumer <merttumer@outlook.com>2018-08-03 07:13:00 -0700
committerJan Holesovsky <kendy@collabora.com>2019-06-05 21:46:23 +0200
commit11934c1156cabbf5abf912e9726b11668e59cb22 (patch)
treeb43c1e3aede3463c798d4b6e91bc69ef7fa4ad01
parente2ff5a51e23174a2b9817b4adcdf500e73ed49f4 (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>
-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 d327bd3c59b3..766ef2159c3f 100644
--- a/android/source/src/java/org/libreoffice/LOKitThread.java
+++ b/android/source/src/java/org/libreoffice/LOKitThread.java
@@ -230,7 +230,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();