From a6837729f455544d4d22b87f50a9f7f1c3723ed2 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 15 Jan 2022 14:37:05 +0100 Subject: [PATCH] Skip reloading transient accounts --- app/src/main/java/eu/faircode/email/AdapterAttachment.java | 2 +- app/src/main/java/eu/faircode/email/AdapterImage.java | 2 +- app/src/main/java/eu/faircode/email/FragmentMessages.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterAttachment.java b/app/src/main/java/eu/faircode/email/AdapterAttachment.java index 2acf81fb0e..f88fd22807 100644 --- a/app/src/main/java/eu/faircode/email/AdapterAttachment.java +++ b/app/src/main/java/eu/faircode/email/AdapterAttachment.java @@ -305,7 +305,7 @@ public class AdapterAttachment extends RecyclerView.Adapter if (account == null) return null; - if (!"connected".equals(account.state)) + if (!"connected".equals(account.state) && !account.isTransient(context)) reload = account.id; EntityAttachment attachment = db.attachment().getAttachment(id); diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index a5563cc6ab..e249205198 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -6010,7 +6010,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. if (account == null) return null; - if (!"connected".equals(account.state)) + if (!"connected".equals(account.state) && !account.isTransient(context)) reload = account.id; if (message.ui_unsnoozed)