1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-23 21:17:58 +01:00

Update VCardProvider.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@5371 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro 2006-09-14 20:46:32 +00:00 committed by derek
parent 29073a307a
commit 41a5399c39

View file

@ -125,11 +125,12 @@ public class VCardProvider implements IQProvider {
if (nodes == null) return;
for (int i = 0; i < nodes.getLength(); i++) {
Element element = (Element) nodes.item(i);
if ("HOME".equals(element.getParentNode().getFirstChild().getNodeName())) {
vCard.setEmailHome(getTextContent(element));
} else {
if ("WORK".equals(element.getParentNode().getFirstChild().getNodeName())) {
vCard.setEmailWork(getTextContent(element));
}
else {
vCard.setEmailHome(getTextContent(element));
}
}
}