Skip to content

Commit 22739ba

Browse files
authored
IllegalArgumentException Bug Fix
Attempting to prevent crash seen in Firebase logs: java.lang.IllegalArgumentException Receiver not registered: android.widget.ZoomButtonsController
1 parent 0801fde commit 22739ba

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/android/InAppBrowser.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,12 @@ public void run() {
464464
// NB: wait for about:blank before dismissing
465465
public void onPageFinished(WebView view, String url) {
466466
if (dialog != null) {
467-
dialog.dismiss();
467+
try {
468+
dialog.dismiss();
469+
} catch (IllegalArgumentException e) {
470+
LOG.d(LOG_TAG, "Exception dismissing window: " + e.getLocalizedMessage());
471+
}
472+
468473
dialog = null;
469474
}
470475
}

0 commit comments

Comments
 (0)