From 86a0e9c2eb78e65bc7f14c078448ed501ace207d Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 23 Jul 2023 07:35:28 +0200 Subject: [PATCH] Cleanup --- app/src/main/java/eu/faircode/email/Core.java | 7 ++----- .../java/eu/faircode/email/FragmentDialogEditSubject.java | 1 - 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 7b1782d253..a36463bb17 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -129,7 +129,6 @@ import javax.mail.internet.AddressException; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeBodyPart; import javax.mail.internet.MimeMessage; -import javax.mail.search.AndTerm; import javax.mail.search.ComparisonTerm; import javax.mail.search.FlagTerm; import javax.mail.search.HeaderTerm; @@ -2146,9 +2145,8 @@ class Core { if (trash == null) { imessage.setFlag(Flags.Flag.DELETED, true); expunge(context, ifolder, Arrays.asList(imessage)); - } else { + } else EntityOperation.queue(context, message, EntityOperation.MOVE, trash.id); - } } static boolean deletePart(Part part, Part attachment) throws MessagingException, IOException { @@ -3104,9 +3102,8 @@ class Core { if (trash == null) { imessage.setFlag(Flags.Flag.DELETED, true); expunge(context, ifolder, Arrays.asList(imessage)); - } else { + } else EntityOperation.queue(context, message, EntityOperation.MOVE, trash.id); - } } private static void onSynchronizeMessages( diff --git a/app/src/main/java/eu/faircode/email/FragmentDialogEditSubject.java b/app/src/main/java/eu/faircode/email/FragmentDialogEditSubject.java index 2c58001a83..978ae5a5c2 100644 --- a/app/src/main/java/eu/faircode/email/FragmentDialogEditSubject.java +++ b/app/src/main/java/eu/faircode/email/FragmentDialogEditSubject.java @@ -30,7 +30,6 @@ import android.view.LayoutInflater; import android.view.View; import android.view.inputmethod.EditorInfo; import android.widget.Button; -import android.widget.CheckBox; import android.widget.EditText; import android.widget.TextView;