1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-19 13:48:58 +00:00

Small layout improvement

This commit is contained in:
M66B 2022-02-14 08:06:50 +01:00
parent 2a65b5fe92
commit 706f70ab16

View file

@ -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() {