mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-10 18:15:58 +01:00
Modified to use new FormField constructor
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2274 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
00ffca04db
commit
a011ddd424
1 changed files with 1 additions and 2 deletions
|
@ -108,9 +108,8 @@ public class DataFormProvider implements PacketExtensionProvider {
|
||||||
|
|
||||||
private FormField parseField(XmlPullParser parser) throws Exception {
|
private FormField parseField(XmlPullParser parser) throws Exception {
|
||||||
boolean done = false;
|
boolean done = false;
|
||||||
FormField formField = new FormField();
|
FormField formField = new FormField(parser.getAttributeValue("", "var"));
|
||||||
formField.setLabel(parser.getAttributeValue("", "label"));
|
formField.setLabel(parser.getAttributeValue("", "label"));
|
||||||
formField.setVariable(parser.getAttributeValue("", "var"));
|
|
||||||
formField.setType(parser.getAttributeValue("", "type"));
|
formField.setType(parser.getAttributeValue("", "type"));
|
||||||
while (!done) {
|
while (!done) {
|
||||||
int eventType = parser.next();
|
int eventType = parser.next();
|
||||||
|
|
Loading…
Reference in a new issue