1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-12-15 07:21:08 +01:00

Add 'PacketParserUtils.addPacketextension()'

This commit is contained in:
Florian Schmaus 2014-10-07 21:46:02 +02:00
parent 6980c8e63d
commit 452b2aca0f
9 changed files with 52 additions and 40 deletions

View file

@ -20,7 +20,6 @@ import java.io.IOException;
import org.jivesoftware.smack.SmackException;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.packet.PacketExtension;
import org.jivesoftware.smack.provider.IQProvider;
import org.jivesoftware.smack.util.PacketParserUtils;
import org.jivesoftware.smackx.pubsub.packet.PubSub;
@ -50,8 +49,7 @@ public class PubSubProvider extends IQProvider<PubSub>
if (eventType == XmlPullParser.START_TAG)
{
PacketExtension ext = PacketParserUtils.parsePacketExtension(parser.getName(), parser.getNamespace(), parser);
pubsub.addExtension(ext);
PacketParserUtils.addPacketExtension(pubsub, parser);
}
else if (eventType == XmlPullParser.END_TAG)
{