diff --git a/affirm/src/main/java/com/affirm/android/AffirmWebChromeClient.java b/affirm/src/main/java/com/affirm/android/AffirmWebChromeClient.java index 35aa61a..aead1dd 100755 --- a/affirm/src/main/java/com/affirm/android/AffirmWebChromeClient.java +++ b/affirm/src/main/java/com/affirm/android/AffirmWebChromeClient.java @@ -48,6 +48,7 @@ public boolean onConsoleMessage(ConsoleMessage cm) { public boolean onJsConfirm(WebView view, String url, String message, final JsResult result) { new AlertDialog.Builder(view.getContext()).setTitle(R.string.affirm) .setMessage(message) + .setCancelable(false) .setPositiveButton(android.R.string.ok, (dialog, which) -> result.confirm()) .setNegativeButton(android.R.string.cancel, (dialog, which) -> result.cancel()) .create()