You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/10/02 15:39:35 UTC

[GitHub] [cordova-plugin-inappbrowser] robinson29a edited a comment on issue #290: InAppBrowser will not destroy WebView after being closed (by invoking ref.close()) causing memory leaks

robinson29a edited a comment on issue #290: InAppBrowser will not destroy WebView after being closed (by invoking ref.close()) causing memory leaks
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/290#issuecomment-537551356
 
 
   I made this change in the closeDialog function and it worked for me.
   
   ````
   childView.setWebViewClient(new WebViewClient() {
                       // NB: wait for about:blank before dismissing
                       public void onPageFinished(WebView view, String url) {
                           if (dialog != null) {
                               dialog.dismiss();
                               dialog = null;
                           }
   						inAppWebView.destroy();
                       }
                   });
   ````

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org