From 706f70ab166e89c19cb55e9240af8d5038f83292 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 14 Feb 2022 08:06:50 +0100 Subject: [PATCH] Small layout improvement --- .../main/java/eu/faircode/email/FragmentSetup.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentSetup.java b/app/src/main/java/eu/faircode/email/FragmentSetup.java index f120d40706..7df5e0470c 100644 --- a/app/src/main/java/eu/faircode/email/FragmentSetup.java +++ b/app/src/main/java/eu/faircode/email/FragmentSetup.java @@ -843,8 +843,14 @@ public class FragmentSetup extends FragmentBase { long account = args.getLong("account"); String name = args.getString("name"); - new AlertDialog.Builder(view.getContext()) - .setIcon(R.drawable.twotone_warning_24) + final Context context = getContext(); + + Drawable d = context.getDrawable(R.drawable.twotone_warning_24); + d.mutate(); + d.setTint(Helper.resolveColor(context, R.attr.colorWarning)); + + new AlertDialog.Builder(context) + .setIcon(d) .setTitle(name) .setMessage(R.string.title_account_delete) .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { @@ -878,7 +884,6 @@ public class FragmentSetup extends FragmentBase { } }) .show(); - } private ConnectivityManager.NetworkCallback networkCallback = new ConnectivityManager.NetworkCallback() {