Refactoring

pull/200/head
M66B 3 years ago
parent a9d24170cb
commit e4d0ec3402

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

Loading…
Cancel
Save