aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/xmpp/forms
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2015-11-26 17:44:29 +0100
committerDaniel Gultsch <daniel@gultsch.de>2015-11-26 17:44:29 +0100
commit60211a315ee8cf83a6b87836c30abc28e4dec272 (patch)
tree897acf66fee9c793d2bfae03a7efa30f13f6e456 /src/main/java/eu/siacs/conversations/xmpp/forms
parent23ef1c660a828c58e12a9134e0de2d012496cdc2 (diff)
hide subject edit button if not editable by user
Diffstat (limited to 'src/main/java/eu/siacs/conversations/xmpp/forms')
-rw-r--r--src/main/java/eu/siacs/conversations/xmpp/forms/Field.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/xmpp/forms/Field.java b/src/main/java/eu/siacs/conversations/xmpp/forms/Field.java
index c8388000..3ec1f214 100644
--- a/src/main/java/eu/siacs/conversations/xmpp/forms/Field.java
+++ b/src/main/java/eu/siacs/conversations/xmpp/forms/Field.java
@@ -47,4 +47,8 @@ public class Field extends Element {
field.setChildren(element.getChildren());
return field;
}
+
+ public String getValue() {
+ return findChildContent("value");
+ }
}