/android/import-contacts

To get this branch, use:
bzr branch http://bzr.ed.am/android/import-contacts

« back to all changes in this revision

Viewing changes to src/org/waxworlds/importcontacts/Importer.java

  • Committer: edam
  • Date: 2009-02-02 07:07:52 UTC
  • Revision ID: edam@waxworlds.org-20090202070752-2lp8igdsdjyu9fic
- bugfix: add contacts to the "my contacts" group didn't actually work on a real device. So we're doing it a different way.
- updated todo list

Show diffs side-by-side

added added

removed removed

434
434
                        if( id <= 0 ) return;   // shouldn't happen!
435
435
 
436
436
                        // add them to the "My Contacts" group
437
 
                        Contacts.People.addToGroup(
438
 
                                        _doit.getContentResolver(), id,
439
 
                                        Contacts.Groups.GROUP_MY_CONTACTS );
 
437
                        Contacts.People.addToMyContactsGroup(
 
438
                                        _doit.getContentResolver(), id );
440
439
 
441
440
                        // update cache
442
441
                        _contacts.put( contact._name, id );