From 0b01a88a3cb65b4923345337bd22a688bc0f0c8a Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 14 Dec 2020 11:58:10 +0100 Subject: [PATCH] Synchronize always more, not less --- app/src/main/java/eu/faircode/email/FragmentFolders.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentFolders.java b/app/src/main/java/eu/faircode/email/FragmentFolders.java index f0215bca8d..ab5266ea28 100644 --- a/app/src/main/java/eu/faircode/email/FragmentFolders.java +++ b/app/src/main/java/eu/faircode/email/FragmentFolders.java @@ -643,7 +643,7 @@ public class FragmentFolders extends FragmentBase { db.folder().setFolderKeep(folder.id, Integer.MAX_VALUE); } else if (months > 0) { db.folder().setFolderInitialize(folder.id, months * 30); - db.folder().setFolderKeep(folder.id, months * 30); + db.folder().setFolderKeep(folder.id, Math.max(folder.keep_days, months * 30)); } EntityOperation.sync(context, folder.id, true);