1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-26 16:22:06 +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; if (nodes == null) return;
for (int i = 0; i < nodes.getLength(); i++) { for (int i = 0; i < nodes.getLength(); i++) {
Element element = (Element) nodes.item(i); Element element = (Element) nodes.item(i);
if ("HOME".equals(element.getParentNode().getFirstChild().getNodeName())) { if ("WORK".equals(element.getParentNode().getFirstChild().getNodeName())) {
vCard.setEmailHome(getTextContent(element));
} else {
vCard.setEmailWork(getTextContent(element)); vCard.setEmailWork(getTextContent(element));
} }
else {
vCard.setEmailHome(getTextContent(element));
}
} }
} }