Display discard empty drafts

pull/167/head
M66B 5 years ago
parent c8ef1d8270
commit e396642464

@ -2827,14 +2827,12 @@ public class FragmentCompose extends FragmentBase {
else else
EntityOperation.queue(context, draft, EntityOperation.MOVE, trash.id); EntityOperation.queue(context, draft, EntityOperation.MOVE, trash.id);
if (!empty) { Handler handler = new Handler(context.getMainLooper());
Handler handler = new Handler(context.getMainLooper()); handler.post(new Runnable() {
handler.post(new Runnable() { public void run() {
public void run() { ToastEx.makeText(context, R.string.title_draft_deleted, Toast.LENGTH_LONG).show();
ToastEx.makeText(context, R.string.title_draft_deleted, Toast.LENGTH_LONG).show(); }
} });
});
}
} else { } else {
// Move draft to new account // Move draft to new account
if (draft.account != aid && aid >= 0) { if (draft.account != aid && aid >= 0) {

Loading…
Cancel
Save