Refactoring

This commit is contained in:
M66B 2021-07-25 21:21:44 +02:00
parent a9d24170cb
commit e4d0ec3402
1 changed files with 3 additions and 1 deletions

View File

@ -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<List<EntityAccount>>() {
DB db = DB.getInstance(this);
db.account().liveSynchronizingAccounts().observe(this, new Observer<List<EntityAccount>>() {
@Override
public void onChanged(List<EntityAccount> accounts) {
hasAccount = (accounts != null && accounts.size() > 0);