Small layout improvement

pull/194/merge
M66B 3 years ago
parent 2a65b5fe92
commit 706f70ab16

@ -843,8 +843,14 @@ public class FragmentSetup extends FragmentBase {
long account = args.getLong("account"); long account = args.getLong("account");
String name = args.getString("name"); String name = args.getString("name");
new AlertDialog.Builder(view.getContext()) final Context context = getContext();
.setIcon(R.drawable.twotone_warning_24)
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) .setTitle(name)
.setMessage(R.string.title_account_delete) .setMessage(R.string.title_account_delete)
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
@ -878,7 +884,6 @@ public class FragmentSetup extends FragmentBase {
} }
}) })
.show(); .show();
} }
private ConnectivityManager.NetworkCallback networkCallback = new ConnectivityManager.NetworkCallback() { private ConnectivityManager.NetworkCallback networkCallback = new ConnectivityManager.NetworkCallback() {

Loading…
Cancel
Save