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:
parent
6980c8e63d
commit
452b2aca0f
9 changed files with 52 additions and 40 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue