From e6d4aa8cd40d3529a2b74a272b5e72b4532840e5 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 27 Apr 2021 08:56:17 +0200 Subject: [PATCH] Improved swipe error message --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 82d2c1324b..4b98a3b21f 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -2333,7 +2333,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. EntityFolder targetFolder = db.folder().getFolder(tid); if (targetFolder == null) - return result; + throw new IllegalArgumentException(context.getString(R.string.title_no_folder)); EntityAccount targetAccount = db.account().getAccount(targetFolder.account); if (targetAccount == null)