~singpolyma/cheogram-android

2be48f4426e2acaca1557c7844d967341bba497f — Stephen Paul Weber 10 months ago 871be92
Copy to avoid concurrent modification
1 files changed, 2 insertions(+), 2 deletions(-)

M src/main/java/eu/siacs/conversations/xml/Element.java
M src/main/java/eu/siacs/conversations/xml/Element.java => src/main/java/eu/siacs/conversations/xml/Element.java +2 -2
@@ 102,7 102,7 @@ public class Element implements Node {
	}

	public Element findChild(String name, String xmlns) {
		for (Element child : this.children) {
		for (Element child : getChildren()) {
			if (name.equals(child.getName()) && xmlns.equals(child.getAttribute("xmlns"))) {
				return child;
			}


@@ 112,7 112,7 @@ public class Element implements Node {

	public Element findChildEnsureSingle(String name, String xmlns) {
		final List<Element> results = new ArrayList<>();
		for (Element child : this.children) {
		for (Element child : getChildren()) {
			if (name.equals(child.getName()) && xmlns.equals(child.getAttribute("xmlns"))) {
				results.add(child);
			}