diff --git a/src/Kp2aBusinessLogicSdkStyle/Kp2aBusinessLogicSdkStyle.csproj b/src/Kp2aBusinessLogicSdkStyle/Kp2aBusinessLogicSdkStyle.csproj
index 9825a3c4..963dcb87 100644
--- a/src/Kp2aBusinessLogicSdkStyle/Kp2aBusinessLogicSdkStyle.csproj
+++ b/src/Kp2aBusinessLogicSdkStyle/Kp2aBusinessLogicSdkStyle.csproj
@@ -15,6 +15,7 @@
+
diff --git a/src/Kp2aBusinessLogicSdkStyle/database/edit/OnFinish.cs b/src/Kp2aBusinessLogicSdkStyle/database/edit/OnFinish.cs
index 383f402c..455e3a53 100644
--- a/src/Kp2aBusinessLogicSdkStyle/database/edit/OnFinish.cs
+++ b/src/Kp2aBusinessLogicSdkStyle/database/edit/OnFinish.cs
@@ -21,6 +21,7 @@ using Android.App;
using Android.Content;
using Android.OS;
using Android.Widget;
+using Google.Android.Material.Dialog;
namespace keepass2android
{
@@ -132,7 +133,7 @@ namespace keepass2android
{
try
{
- AlertDialog.Builder builder = new AlertDialog.Builder(ctx);
+ MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(ctx);
builder.SetMessage(message)
.SetPositiveButton(Android.Resource.String.Ok, (sender, args) => ((Dialog)sender).Dismiss())
diff --git a/src/keepass2android-appSdkStyle/AppKilledInfo.cs b/src/keepass2android-appSdkStyle/AppKilledInfo.cs
index a7afd65a..d0d0aff5 100644
--- a/src/keepass2android-appSdkStyle/AppKilledInfo.cs
+++ b/src/keepass2android-appSdkStyle/AppKilledInfo.cs
@@ -9,6 +9,7 @@ using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
+using Google.Android.Material.Dialog;
using keepass2android_appSdkStyle;
namespace keepass2android
@@ -23,7 +24,8 @@ namespace keepass2android
//we don't try to handle this better
//But at least explain to the user what happened!
((NotificationManager)GetSystemService(Context.NotificationService)).CancelAll();
- AlertDialog.Builder b = new AlertDialog.Builder(this);
+
+ MaterialAlertDialogBuilder b = new MaterialAlertDialogBuilder(this);
b.SetMessage(Resource.String.killed_by_os);
b.SetPositiveButton(Android.Resource.String.Ok, delegate
{
diff --git a/src/keepass2android-appSdkStyle/ChangeLog.cs b/src/keepass2android-appSdkStyle/ChangeLog.cs
index d060d8c2..07862a3b 100644
--- a/src/keepass2android-appSdkStyle/ChangeLog.cs
+++ b/src/keepass2android-appSdkStyle/ChangeLog.cs
@@ -17,6 +17,7 @@ using Android.Text.Util;
using Android.Views;
using Android.Webkit;
using Android.Widget;
+using Google.Android.Material.Dialog;
using keepass2android_appSdkStyle;
namespace keepass2android
@@ -25,7 +26,7 @@ namespace keepass2android
{
public static void ShowChangeLog(Context ctx, Action onDismiss)
{
- AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(ctx, Android.Resource.Style.ThemeHoloLightDialog));
+ MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(ctx);
builder.SetTitle(ctx.GetString(Resource.String.ChangeLog_title));
List changeLog = new List{
BuildChangelogString(ctx, new List{Resource.Array.ChangeLog_1_11,Resource.Array.ChangeLog_1_11_net}, "1.11"),
diff --git a/src/keepass2android-appSdkStyle/ConfigureChildDatabasesActivity.cs b/src/keepass2android-appSdkStyle/ConfigureChildDatabasesActivity.cs
index e76a02ef..82943d0f 100644
--- a/src/keepass2android-appSdkStyle/ConfigureChildDatabasesActivity.cs
+++ b/src/keepass2android-appSdkStyle/ConfigureChildDatabasesActivity.cs
@@ -16,6 +16,7 @@ using Android.Text;
using Android.Util;
using Android.Views;
using Android.Widget;
+using Google.Android.Material.Dialog;
using keepass2android.database.edit;
using KeePass.Util.Spr;
using keepass2android_appSdkStyle;
@@ -288,7 +289,7 @@ namespace keepass2android
FindViewById