mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-04 10:19:15 +02:00
tint destructive buttons in red
This commit is contained in:
parent
36b1f9567a
commit
36a480fec8
9 changed files with 41 additions and 20 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue