597
597
// here's the logic...
598
598
boolean preferred = types.contains( "PREF" );
599
int type = PhonesColumns.TYPE_MOBILE;
599
600
if( types.contains( "VOICE" ) )
600
601
if( types.contains( "WORK" ) )
601
addPhone( value, PhonesColumns.TYPE_WORK, preferred );
602
type = PhonesColumns.TYPE_WORK;
603
addPhone( value, PhonesColumns.TYPE_HOME, preferred );
604
type = PhonesColumns.TYPE_HOME;
604
605
else if( types.contains( "CELL" ) || types.contains( "VIDEO" ) )
605
addPhone( value, PhonesColumns.TYPE_MOBILE, preferred );
606
type = PhonesColumns.TYPE_MOBILE;
606
607
if( types.contains( "FAX" ) )
607
608
if( types.contains( "HOME" ) )
608
addPhone( value, PhonesColumns.TYPE_FAX_HOME, preferred );
609
type = PhonesColumns.TYPE_FAX_HOME;
610
addPhone( value, PhonesColumns.TYPE_FAX_WORK, preferred );
611
type = PhonesColumns.TYPE_FAX_WORK;
611
612
if( types.contains( "PAGER" ) )
612
addPhone( value, PhonesColumns.TYPE_PAGER, preferred );
613
type = PhonesColumns.TYPE_PAGER;
616
addPhone( value, type, preferred );
615
619
public void parseEMAIL( String[] params, String value )