1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-24 15:11:03 +00:00

Skip reloading transient accounts

This commit is contained in:
M66B 2022-01-15 14:37:05 +01:00
parent 0b4865a0bf
commit a6837729f4
3 changed files with 3 additions and 3 deletions

View file

@ -305,7 +305,7 @@ public class AdapterAttachment extends RecyclerView.Adapter<AdapterAttachment.Vi
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);

View file

@ -145,7 +145,7 @@ public class AdapterImage extends RecyclerView.Adapter<AdapterImage.ViewHolder>
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);

View file

@ -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)