diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-01-26 17:23:24 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-01-26 17:23:24 +0100 |
commit | d2c5a939ed2cf42374e0ddb528ee363b7fefee8c (patch) | |
tree | 59abc6f493e605d8399c4f98a9b3ca290cc92a72 /src/main/java/eu/siacs/conversations/ui/forms/FormJidSingleFieldWrapper.java | |
parent | edc6ce4ff215f5fc2f78a9b4c8688f4c4a499983 (diff) |
show values in formfieldwrappers and allow form to be set to read only
Diffstat (limited to 'src/main/java/eu/siacs/conversations/ui/forms/FormJidSingleFieldWrapper.java')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/forms/FormJidSingleFieldWrapper.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/forms/FormJidSingleFieldWrapper.java b/src/main/java/eu/siacs/conversations/ui/forms/FormJidSingleFieldWrapper.java index 3890a1a7a..553e8f21f 100644 --- a/src/main/java/eu/siacs/conversations/ui/forms/FormJidSingleFieldWrapper.java +++ b/src/main/java/eu/siacs/conversations/ui/forms/FormJidSingleFieldWrapper.java @@ -3,6 +3,8 @@ package eu.siacs.conversations.ui.forms; import android.content.Context; import android.text.InputType; +import java.util.List; + import eu.siacs.conversations.R; import eu.siacs.conversations.xmpp.forms.Field; import eu.siacs.conversations.xmpp.jid.InvalidJidException; @@ -30,4 +32,13 @@ public class FormJidSingleFieldWrapper extends FormTextFieldWrapper { } return super.validates(); } + + @Override + protected void setValues(List<String> values) { + StringBuilder builder = new StringBuilder(""); + for(String value : values) { + builder.append(value); + } + editText.setText(builder.toString()); + } } |