Display discard empty drafts

This commit is contained in:
M66B 2019-11-08 08:26:15 +01:00
parent c8ef1d8270
commit e396642464
1 changed files with 6 additions and 8 deletions

View File

@ -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) {