Skip to content

Commit

Permalink
Bugfix: InAppBrowser will not destroy WebView after being closed
Browse files Browse the repository at this point in the history
  • Loading branch information
wif70068 committed Aug 9, 2020
1 parent 91ebdf2 commit b96eb82
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/android/InAppBrowser.java
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,13 @@ public void onPageFinished(WebView view, String url) {
dialog.dismiss();
dialog = null;
}
if (url.equals(new String("about:blank"))) {
inAppWebView.onPause();
inAppWebView.removeAllViews();
inAppWebView.destroyDrawingCache();
inAppWebView.destroy();
inAppWebView = null;
}
}
});
// NB: From SDK 19: "If you call methods on WebView from any thread
Expand Down

1 comment on commit b96eb82

@mashoodpv
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same issue here, hope this will be updated to apache master.

Please sign in to comment.