From e4d0ec34026661db7c242eb76d6deae83fe3cc24 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 25 Jul 2021 21:21:44 +0200 Subject: [PATCH] Refactoring --- app/src/main/java/eu/faircode/email/ActivitySetup.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ActivitySetup.java b/app/src/main/java/eu/faircode/email/ActivitySetup.java index 7dd9cbe618..29892dfa31 100644 --- a/app/src/main/java/eu/faircode/email/ActivitySetup.java +++ b/app/src/main/java/eu/faircode/email/ActivitySetup.java @@ -311,7 +311,9 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac password = savedInstanceState.getString("fair:password"); } - DB.getInstance(this).account().liveSynchronizingAccounts().observe(this, new Observer>() { + DB db = DB.getInstance(this); + + db.account().liveSynchronizingAccounts().observe(this, new Observer>() { @Override public void onChanged(List accounts) { hasAccount = (accounts != null && accounts.size() > 0);