diff options
author | Daniel Gultsch <inputmice@siacs.eu> | 2015-01-04 12:09:39 +0100 |
---|---|---|
committer | Daniel Gultsch <inputmice@siacs.eu> | 2015-01-04 12:09:39 +0100 |
commit | e32a927300a96fc59adcabb2ebc16318e67de226 (patch) | |
tree | 35b282c099bf3ef507c63446840eead61e99b93c /src/main/java/eu/siacs/conversations/services/XmppConnectionService.java | |
parent | 51f5b84ee4188321d6d0bc954e69680aeb44845c (diff) |
Use packet callbacks only for IqPackets. Removed unnecessary code
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/services/XmppConnectionService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java index 6bdc55a12..04fc04d34 100644 --- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java @@ -803,7 +803,7 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa final IqPacket iqPacket = new IqPacket(IqPacket.TYPE_GET); final Element query = iqPacket.query("jabber:iq:private"); query.addChild("storage", "storage:bookmarks"); - final PacketReceived callback = new OnIqPacketReceived() { + final OnIqPacketReceived callback = new OnIqPacketReceived() { @Override public void onIqPacketReceived(final Account account, final IqPacket packet) { @@ -2090,7 +2090,7 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa } } - public void sendIqPacket(final Account account, final IqPacket packet, final PacketReceived callback) { + public void sendIqPacket(final Account account, final IqPacket packet, final OnIqPacketReceived callback) { final XmppConnection connection = account.getXmppConnection(); if (connection != null) { connection.sendIqPacket(packet, callback); |