From 460db1f0674b3090cc4f42c800607a9b22ff90c9 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 30 Apr 2019 08:28:40 +0200 Subject: [PATCH] Sync requires a connected account --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 0da2ef0edc..618de39247 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -1736,7 +1736,8 @@ public class FragmentMessages extends FragmentBase { boolean refreshing = false; for (TupleFolderEx folder : folders) - if (folder.sync_state != null && (folder.account == null || "connected".equals(folder.accountState))) { + if (folder.sync_state != null && + (folder.account == null || "connected".equals(folder.accountState))) { refreshing = true; break; } @@ -1786,8 +1787,8 @@ public class FragmentMessages extends FragmentBase { } } - boolean refreshing = (folder != null && folder.sync_state != null); - + boolean refreshing = (folder != null && folder.sync_state != null && + (folder.account == null || "connected".equals(folder.accountState))); if (!refreshing && manual) { manual = false; rvMessage.scrollToPosition(0);