Skip to content

Commit

Permalink
fix java.lang.IllegalArgumentException
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarafanov Valeriy committed Jan 23, 2020
1 parent 09ad59f commit 4756de2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/android/InAppBrowser.java
Original file line number Diff line number Diff line change
Expand Up @@ -533,11 +533,14 @@ public void run() {
if (childView == null) {
return;
}
if (dialog == null) {
return;
}

childView.setWebViewClient(new WebViewClient() {
// NB: wait for about:blank before dismissing
public void onPageFinished(WebView view, String url) {
if (dialog != null) {
if (dialog != null && dialog.isShowing()) {
dialog.dismiss();
dialog = null;
}
Expand Down

0 comments on commit 4756de2

Please sign in to comment.