1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-23 06:42:05 +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:
Gaston Dombiak 2004-04-05 16:22:52 +00:00 committed by gdombiak
parent 00ffca04db
commit a011ddd424

View file

@ -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();