From 9c701e86f282e1f319e700271a8c35c6481661d4 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 13 Aug 2023 15:25:18 +0200 Subject: [PATCH] Added logging --- 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 fc4bb35ab4..5c59a41b5f 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -2385,13 +2385,17 @@ class Core { boolean fixed = prefs.getBoolean("fixed_poll." + account.id, false); if (!fixed && account.created != null && account.created > 1691193600 * 1000L /* August 5, 2023 */) try { + int count = 0; EntityFolder inbox = db.folder().getFolderByType(account.id, EntityFolder.INBOX); List children = db.folder().getChildFolders(inbox.id); for (EntityFolder child : children) if (!child.poll) { + count++; db.folder().setFolderPoll(child.id, true); EntityLog.log(context, "Fixed poll=" + child.name + ":" + child.type); } + if (count > 0) + Log.e("Fixed poll count=" + count); } catch (Throwable ex) { Log.e(ex); } finally {