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

  • Committer: Tim Marston
  • Date: 2013-07-19 15:55:07 UTC
  • Revision ID: tim@ed.am-20130719155507-qb78vx8m4s1ngyut
added suopport for birthdays

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * VCFImporter.java
3
3
 *
4
 
 * Copyright (C) 2009 to 2011 Tim Marston <tim@ed.am>
 
4
 * Copyright (C) 2009 to 2013 Tim Marston <tim@ed.am>
5
5
 *
6
6
 * This file is part of the Import Contacts program (hereafter referred
7
7
 * to as "this program").  For more information, see
723
723
                                        parseLABEL( name_param_parts, complete_value );
724
724
                                else if( name_param_parts[ 0 ].equalsIgnoreCase( "NOTE" ) )
725
725
                                        parseNOTE( name_param_parts, complete_value );
 
726
                                else if( name_param_parts[ 0 ].equalsIgnoreCase( "BDAY" ) )
 
727
                                        parseBDAY( name_param_parts, complete_value );
726
728
                        }
727
729
                }
728
730
 
1029
1031
                        addNote( unescapeValue( value ) );
1030
1032
                }
1031
1033
 
 
1034
                private void parseBDAY( String[] params, String value )
 
1035
                {
 
1036
                        setBirthday( value );
 
1037
                }
 
1038
 
1032
1039
                public void finaliseVcard()
1033
1040
                        throws ParseException, ContactNotIdentifiableException
1034
1041
                {