/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/am/ed/importcontacts/Importer.java

  • Committer: edam
  • Date: 2012-12-19 11:50:41 UTC
  • Revision ID: tim@ed.am-20121219115041-b1e2x8ac2oqs2l7j
use pre-generated cach identifier

Show diffs side-by-side

added added

removed removed

Lines of Context:
692
692
                                _backend.deleteContact( id );
693
693
 
694
694
                                // update cache
695
 
                                _contacts_cache.removeLookup( contact.getCacheIdentifier() );
 
695
                                _contacts_cache.removeLookup( cache_identifier );
696
696
                                _contacts_cache.removeAssociatedData( id );
697
697
 
698
698
                                // show that we're overwriting a contact
715
715
                                showError( R.string.error_unabletoaddcontact );
716
716
 
717
717
                        // update cache
718
 
                        _contacts_cache.addLookup(
719
 
                                ContactsCache.createIdentifier( contact ), id );
 
718
                        _contacts_cache.addLookup( cache_identifier, id );
720
719
 
721
720
                        // if we haven't already shown that we're overwriting a contact,
722
721
                        // show that we're creating a new contact