/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/ContactsBackend.java

  • Committer: edam
  • Date: 2012-12-21 15:50:09 UTC
  • Revision ID: tim@ed.am-20121221155009-exbirzrfx4p95ipj
fixed some column valuesa dn a broken check to contatinate name parts with spaces

Show diffs side-by-side

added added

removed removed

Lines of Context:
249
249
                        switch( type )
250
250
                        {
251
251
                        case ContactData.TYPE_HOME:
252
 
                                return Contacts.Phones.TYPE_HOME;
 
252
                                return Contacts.PhonesColumns.TYPE_HOME;
253
253
                        case ContactData.TYPE_WORK:
254
 
                                return Contacts.Phones.TYPE_WORK;
 
254
                                return Contacts.PhonesColumns.TYPE_WORK;
255
255
                        case ContactData.TYPE_MOBILE:
256
 
                                return Contacts.Phones.TYPE_MOBILE;
 
256
                                return Contacts.PhonesColumns.TYPE_MOBILE;
257
257
                        case ContactData.TYPE_FAX_HOME:
258
 
                                return Contacts.Phones.TYPE_FAX_HOME;
 
258
                                return Contacts.PhonesColumns.TYPE_FAX_HOME;
259
259
                        case ContactData.TYPE_FAX_WORK:
260
 
                                return Contacts.Phones.TYPE_FAX_WORK;
 
260
                                return Contacts.PhonesColumns.TYPE_FAX_WORK;
261
261
                        case ContactData.TYPE_PAGER:
262
 
                                return Contacts.Phones.TYPE_PAGER;
 
262
                                return Contacts.PhonesColumns.TYPE_PAGER;
263
263
                        }
264
264
                }
265
265
                else if( cls == Contacts.ContactMethods.class )
267
267
                        switch( type )
268
268
                        {
269
269
                        case ContactData.TYPE_HOME:
270
 
                                return Contacts.ContactMethods.TYPE_HOME;
 
270
                                return Contacts.ContactMethodsColumns.TYPE_HOME;
271
271
                        case ContactData.TYPE_WORK:
272
 
                                return Contacts.ContactMethods.TYPE_WORK;
 
272
                                return Contacts.ContactMethodsColumns.TYPE_WORK;
273
273
                        }
274
274
                }
275
275