We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 834fb57 commit a379e88Copy full SHA for a379e88
src/android/InAppBrowser.java
@@ -556,8 +556,12 @@ public void run() {
556
childView.setWebViewClient(new WebViewClient() {
557
// NB: wait for about:blank before dismissing
558
public void onPageFinished(WebView view, String url) {
559
- if (dialog != null && !cordova.getActivity().isFinishing()) {
560
- dialog.dismiss();
+ if (dialog != null && dialog.isShowing() && !cordova.getActivity().isFinishing()) {
+ try {
561
+ dialog.dismiss();
562
+ } catch(IllegalArgumentException e) {
563
+ LOG.e(LOG_TAG, "Caught exception when trying to close IAB dialog: " + e);
564
+ }
565
dialog = null;
566
}
567
0 commit comments