Corrects setting IM address for MacOsX address book (default IM label set to "work").

cusax-fix
Vincent Lucas 13 years ago
parent 2f63201a94
commit 909c524520

@ -1331,11 +1331,9 @@ else if(subCategories.contains(SubCategory.ICQ))
return kABICQInstantProperty;
else if(subCategories.contains(SubCategory.MSN))
return kABMSNInstantProperty;
else if(subCategories.contains(
SubCategory.Jabber))
else if(subCategories.contains(SubCategory.Jabber))
return kABJabberInstantProperty;
else if(subCategories.contains(
SubCategory.Yahoo))
else if(subCategories.contains(SubCategory.Yahoo))
return kABYahooInstantProperty;
break;
case Phone:

@ -95,16 +95,35 @@ public void addContactDetail(ContactDetail detail)
.getSubPropertyLabel();
}
if(subProperty == null
&& property
== MacOSXAddrBookContactQuery.kABAddressProperty)
if(subProperty == null)
{
if(detail.containsSubCategory(SubCategory.Home))
subProperty
= MacOSXAddrBookContactQuery.kABAddressHomeLabel();
else
subProperty
= MacOSXAddrBookContactQuery.kABAddressWorkLabel();
if(property == MacOSXAddrBookContactQuery
.kABAddressProperty)
{
if(detail.containsSubCategory(SubCategory.Home))
subProperty = MacOSXAddrBookContactQuery
.kABAddressHomeLabel();
else
subProperty = MacOSXAddrBookContactQuery
.kABAddressWorkLabel();
}
else if(property == MacOSXAddrBookContactQuery
.kABAIMInstantProperty
|| property == MacOSXAddrBookContactQuery
.kABICQInstantProperty
|| property == MacOSXAddrBookContactQuery
.kABJabberInstantProperty
|| property == MacOSXAddrBookContactQuery
.kABMSNInstantProperty
|| property == MacOSXAddrBookContactQuery
.kABYahooInstantProperty)
{
subProperty = MacOSXAddrBookContactQuery
.kABAddressWorkLabel();
}
}
List<String> values

Loading…
Cancel
Save