diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-01-23 12:44:08 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-01-23 12:44:08 +0100 |
commit | 39fdf4a333378affcca360886701851d84dd9e0b (patch) | |
tree | c2071acd108caee7a0a497f846dee3e9332e1821 /src/main/java/eu/siacs/conversations/ui/forms/FormFieldFactory.java | |
parent | 61408611437785ebe685aadfbca924cbc86340c1 (diff) |
added support for field types jid-single and text-private
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/forms/FormFieldFactory.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/forms/FormFieldFactory.java b/src/main/java/eu/siacs/conversations/ui/forms/FormFieldFactory.java index 9e54678a..2e7c17dc 100644 --- a/src/main/java/eu/siacs/conversations/ui/forms/FormFieldFactory.java +++ b/src/main/java/eu/siacs/conversations/ui/forms/FormFieldFactory.java @@ -15,10 +15,15 @@ public class FormFieldFactory { static { typeTable.put("text-single", FormTextFieldWrapper.class); typeTable.put("text-multi", FormTextFieldWrapper.class); + typeTable.put("text-private", FormTextFieldWrapper.class); + typeTable.put("jid-single", FormJidSingleFieldWrapper.class); } public static FormFieldWrapper createFromField(Context context, Field field) { Class clazz = typeTable.get(field.getType()); + if (clazz == null) { + clazz = FormTextFieldWrapper.class; + } return FormFieldWrapper.createFromField(clazz, context, field); } } |