Introduce ViewModel for ContactListFragment

This commit is contained in:
Sebastian Kürten
2021-01-14 15:22:41 +01:00
parent 5fdc7e7cc4
commit dd6d72ed30
18 changed files with 402 additions and 287 deletions

View File

@@ -213,6 +213,11 @@ class ContactManagerImpl implements ContactManager, EventListener {
return db.transactionWithResult(true, db::getContacts);
}
@Override
public Collection<Contact> getContacts(Transaction txn) throws DbException {
return db.getContacts(txn);
}
@Override
public void removeContact(ContactId c) throws DbException {
db.transaction(false, txn -> removeContact(txn, c));