From 36b49d1b4a13765032bd863b588d7bac7e3a9ae3 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 25 Mar 2019 15:02:27 +0000 Subject: [PATCH] Backward compatibility --- app/src/main/java/eu/faircode/email/Core.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 00af804f49..65b4a2d77e 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -835,6 +835,10 @@ class Core { IMAPFolder ifolder, State state) throws JSONException, MessagingException, IOException { final DB db = DB.getInstance(context); try { + // Legacy + if (jargs.length() == 0) + jargs = folder.getSyncArgs(); + int sync_days = jargs.getInt(0); int keep_days = jargs.getInt(1); boolean download = jargs.getBoolean(2);