1
0
mirror of https://github.com/etesync/android synced 2025-01-23 14:10:54 +00:00

ViewCollection: fix addressbook stats.

This commit is contained in:
Tom Hacohen 2017-04-25 17:20:45 +01:00
parent 51aecba9a0
commit e729bcff42

View File

@ -256,7 +256,7 @@ public class ViewCollectionActivity extends AppCompatActivity implements Refresh
}
} else {
try {
LocalAddressBook resource = new LocalAddressBook(ViewCollectionActivity.this, account, getContentResolver().acquireContentProviderClient(ContactsContract.Contacts.CONTENT_URI));
LocalAddressBook resource = LocalAddressBook.findByUid(ViewCollectionActivity.this, getContentResolver().acquireContentProviderClient(ContactsContract.Contacts.CONTENT_URI), account, info.uid);
count = resource.count();
} catch (ContactsStorageException e) {
e.printStackTrace();