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 e2d8429 commit d8bdd32Copy full SHA for d8bdd32
src/android/InAppBrowser.java
@@ -536,7 +536,11 @@ public void run() {
536
// NB: wait for about:blank before dismissing
537
public void onPageFinished(WebView view, String url) {
538
if (dialog != null && !cordova.getActivity().isFinishing()) {
539
- dialog.dismiss();
+ try {
540
+ dialog.dismiss();
541
+ } catch(IllegalArgumentException e) {
542
+ LOG.e(LOG_TAG, "Caught exception when trying to close IAB dialog: " + e);
543
+ }
544
dialog = null;
545
}
546
0 commit comments