[Libreoffice-commits] core.git: android/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Aug 7 12:27:39 UTC 2018
android/source/src/java/org/libreoffice/LOKitThread.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 27326e0f587c20d8dcf1595829233de1bd3fbe9e
Author: Mert Tumer <merttumer at outlook.com>
AuthorDate: Fri Aug 3 07:13:00 2018 -0700
Commit: Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Tue Aug 7 14:27:16 2018 +0200
tdf#119082 Exception wrong thread on Android Viewer
Change-Id: I58a8d104b24c7cf2d021e2dce700e25592c8a605
Signed-off-by: Mert Tumer <merttumer at outlook.com>
Reviewed-on: https://gerrit.libreoffice.org/58563
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>
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();
More information about the Libreoffice-commits
mailing list