From 9534f0340c719026d1b54943d0c4837d8a52dfa9 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 2 Feb 2021 21:10:27 +0100 Subject: [PATCH] Oops --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 7ac1af7f86..4a14b118c6 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -6007,16 +6007,17 @@ public class FragmentCompose extends FragmentBase { } @Override - protected Boolean onExecute(Context context, Bundle args) { + protected @NonNull + Boolean onExecute(Context context, Bundle args) { long account = args.getLong("account"); String inreplyto = args.getString("inreplyto"); if (TextUtils.isEmpty(inreplyto)) - return null; + return false; List messages = db.message().getMessagesByMsgId(account, inreplyto); if (messages == null) - return null; + return false; boolean canArchive = false; for (EntityMessage message : messages) { @@ -6031,7 +6032,7 @@ public class FragmentCompose extends FragmentBase { } if (!canArchive) - return null; + return false; DB db = DB.getInstance(context); EntityFolder archive = db.folder().getFolderByType(account, EntityFolder.ARCHIVE);