diff options
Diffstat (limited to 'src/main/java/de/thedevstack/conversationsplus/xml/Element.java')
-rw-r--r-- | src/main/java/de/thedevstack/conversationsplus/xml/Element.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/de/thedevstack/conversationsplus/xml/Element.java b/src/main/java/de/thedevstack/conversationsplus/xml/Element.java index 95ed4c4e..ba37d6c0 100644 --- a/src/main/java/de/thedevstack/conversationsplus/xml/Element.java +++ b/src/main/java/de/thedevstack/conversationsplus/xml/Element.java @@ -8,6 +8,7 @@ import de.thedevstack.android.logcat.Logging; import de.thedevstack.conversationsplus.Config; import de.thedevstack.conversationsplus.xmpp.jid.InvalidJidException; import de.thedevstack.conversationsplus.xmpp.jid.Jid; +import de.thedevstack.conversationsplus.xmpp.jid.JidUtil; public class Element { private final String name; @@ -37,7 +38,6 @@ public class Element { public Element addChild(String name, String xmlns) { Element child = new Element(name); child.setAttribute("xmlns", xmlns); - children.add(child); return this.addChild(child); } @@ -47,7 +47,7 @@ public class Element { public Element setContent(String content) { this.content = content; - this.children.clear(); + this.clearChildren(); return this; } @@ -159,7 +159,7 @@ public class Element { final String jid = this.getAttribute(name); if (jid != null && !jid.isEmpty()) { try { - return Jid.fromString(jid); + return JidUtil.fromString(jid); } catch (final InvalidJidException e) { Logging.e(Config.LOGTAG, "could not parse jid " + jid); return null; |