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:
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;
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue