mirror of https://github.com/M66B/FairEmail.git
Display discard empty drafts
This commit is contained in:
parent
c8ef1d8270
commit
e396642464
|
@ -2827,14 +2827,12 @@ public class FragmentCompose extends FragmentBase {
|
|||
else
|
||||
EntityOperation.queue(context, draft, EntityOperation.MOVE, trash.id);
|
||||
|
||||
if (!empty) {
|
||||
Handler handler = new Handler(context.getMainLooper());
|
||||
handler.post(new Runnable() {
|
||||
public void run() {
|
||||
ToastEx.makeText(context, R.string.title_draft_deleted, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
});
|
||||
}
|
||||
Handler handler = new Handler(context.getMainLooper());
|
||||
handler.post(new Runnable() {
|
||||
public void run() {
|
||||
ToastEx.makeText(context, R.string.title_draft_deleted, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
// Move draft to new account
|
||||
if (draft.account != aid && aid >= 0) {
|
||||
|
|
Loading…
Reference in New Issue