mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-23 06:42:05 +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:
parent
29073a307a
commit
41a5399c39
1 changed files with 4 additions and 3 deletions
|
@ -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));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue