diff --git a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/in_app_webview/InAppWebViewChromeClient.java b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/in_app_webview/InAppWebViewChromeClient.java index 67f3eef9..af9e475d 100755 --- a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/in_app_webview/InAppWebViewChromeClient.java +++ b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/in_app_webview/InAppWebViewChromeClient.java @@ -246,7 +246,7 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR return; } - AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(activity, R.style.Theme_AppCompat_Dialog_Alert); + AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(activity, androidx.appcompat.R.style.Theme_AppCompat_Dialog_Alert); alertDialogBuilder.setMessage(alertMessage); if (confirmButtonTitle != null && !confirmButtonTitle.isEmpty()) { alertDialogBuilder.setPositiveButton(confirmButtonTitle, clickListener); @@ -342,7 +342,7 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR return; } - AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(activity, R.style.Theme_AppCompat_Dialog_Alert); + AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(activity, androidx.appcompat.R.style.Theme_AppCompat_Dialog_Alert); alertDialogBuilder.setMessage(alertMessage); if (confirmButtonTitle != null && !confirmButtonTitle.isEmpty()) { alertDialogBuilder.setPositiveButton(confirmButtonTitle, confirmClickListener); @@ -464,7 +464,7 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR return; } - AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(activity, R.style.Theme_AppCompat_Dialog_Alert); + AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(activity, androidx.appcompat.R.style.Theme_AppCompat_Dialog_Alert); alertDialogBuilder.setMessage(alertMessage); if (confirmButtonTitle != null && !confirmButtonTitle.isEmpty()) { alertDialogBuilder.setPositiveButton(confirmButtonTitle, confirmClickListener); @@ -565,7 +565,7 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR return; } - AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(activity, R.style.Theme_AppCompat_Dialog_Alert); + AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(activity, androidx.appcompat.R.style.Theme_AppCompat_Dialog_Alert); alertDialogBuilder.setMessage(alertMessage); if (confirmButtonTitle != null && !confirmButtonTitle.isEmpty()) { alertDialogBuilder.setPositiveButton(confirmButtonTitle, confirmClickListener);