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