[Libreoffice-commits] online.git: android/lib

mert (via logerrit) logerrit at kemper.freedesktop.org
Thu Feb 6 09:06:54 UTC 2020


 android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 1799996be0101210721204826aff1da6b58e2124
Author:     mert <mert.tumer at collabora.com>
AuthorDate: Thu Feb 6 11:58:46 2020 +0300
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Thu Feb 6 10:06:37 2020 +0100

    Destroy webview when LOActivity is destroyed
    
    Chrome://inspect shows that webviews are not destroyed
    even after closing the activity.
    
    Change-Id: Ib0fb2f0b75b06ae349a37a11fb0c9cb35faf3ff5
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88074
    Reviewed-by: Jan Holesovsky <kendy 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 34fd8b1b2..acbd9cdf5 100644
--- a/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java
+++ b/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java
@@ -441,6 +441,7 @@ public class LOActivity extends AppCompatActivity {
         super.onDestroy();
         Log.i(TAG, "onDestroy() - we know we are leaving the document");
         nativeLooper.quit();
+        mWebView.destroy();
         postMobileMessageNative("BYE");
     }
 


More information about the Libreoffice-commits mailing list