tint destructive buttons in red

This commit is contained in:
B. Petersen 2024-08-08 23:13:00 +02:00 committed by bjoern
parent 36b1f9567a
commit 36a480fec8
9 changed files with 41 additions and 20 deletions

View file

@ -595,13 +595,14 @@ public class ProfileActivity extends PassphraseRequiredActionBarActivity
}).show();
}
else {
new AlertDialog.Builder(this)
AlertDialog dialog = new AlertDialog.Builder(this)
.setMessage(R.string.ask_block_contact)
.setCancelable(true)
.setNegativeButton(android.R.string.cancel, null)
.setPositiveButton(R.string.menu_block_contact, (dialog, which) -> {
.setPositiveButton(R.string.menu_block_contact, (d, which) -> {
dcContext.blockContact(contactId, 1);
}).show();
Util.redPositiveButton(dialog);
}
}