1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-27 13:07: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:
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 {
boolean done = false;
FormField formField = new FormField();
FormField formField = new FormField(parser.getAttributeValue("", "var"));
formField.setLabel(parser.getAttributeValue("", "label"));
formField.setVariable(parser.getAttributeValue("", "var"));
formField.setType(parser.getAttributeValue("", "type"));
while (!done) {
int eventType = parser.next();