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