[Libreoffice-commits] online.git: Branch 'distro/collabora/co-4-2' - android/lib

Jan Holesovsky (via logerrit) logerrit at kemper.freedesktop.org
Wed Jul 15 21:33:46 UTC 2020


 android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit dac6a73ae20817c5a8d2e6a54141cc941e6a9025
Author:     Jan Holesovsky <kendy at collabora.com>
AuthorDate: Tue Jul 14 17:07:01 2020 +0200
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Wed Jul 15 23:33:28 2020 +0200

    android: A small follow-up, the intention was an early return.
    
    Change-Id: I3a73cd03c9ec51b7f190092702b4ef860c1f589b
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98756
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java b/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java
index 5fb44fa97..3374ff4ca 100644
--- a/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java
+++ b/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java
@@ -784,8 +784,10 @@ public class LOActivity extends AppCompatActivity {
         if (mWebView != null)
             mWebView.post(new Runnable() {
                 public void run() {
-                    if (mWebView != null)
+                    if (mWebView == null) {
                         Log.i(TAG, "Skipped forwarding to the WebView: " + message);
+                        return;
+                    }
 
                     Log.i(TAG, "Forwarding to the WebView: " + message);
 


More information about the Libreoffice-commits mailing list