mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-04 18:48:31 +00:00
Confirm deleting signatures
This commit is contained in:
parent
a696d7d035
commit
1d864b21bb
2 changed files with 22 additions and 6 deletions
|
@ -392,12 +392,27 @@ public class ActivitySignature extends ActivityBase {
|
|||
}
|
||||
|
||||
private void delete() {
|
||||
Intent result = getIntent();
|
||||
if (result == null)
|
||||
result = new Intent();
|
||||
result.putExtra("html", (String) null);
|
||||
setResult(RESULT_OK, result);
|
||||
finish();
|
||||
new AlertDialog.Builder(this)
|
||||
.setIcon(R.drawable.twotone_gesture_24)
|
||||
.setTitle(R.string.title_edit_signature_delete)
|
||||
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
Intent result = getIntent();
|
||||
if (result == null)
|
||||
result = new Intent();
|
||||
result.putExtra("html", (String) null);
|
||||
setResult(RESULT_OK, result);
|
||||
finish();
|
||||
}
|
||||
})
|
||||
.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
// Do nothing
|
||||
}
|
||||
})
|
||||
.show();
|
||||
}
|
||||
|
||||
private void save() {
|
||||
|
|
|
@ -2040,6 +2040,7 @@
|
|||
When sending a message, the image is copied into the message from the selected location.
|
||||
So, don\'t delete the image file!
|
||||
</string>
|
||||
<string name="title_edit_signature_delete">Delete signature?</string>
|
||||
|
||||
<string name="title_answer_define_name">Name</string>
|
||||
<string name="title_answer_define_value">Value</string>
|
||||
|
|
Loading…
Add table
Reference in a new issue