mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-15 15:31:08 +01:00
Bump "Error Prone" to 2.0.15
and fix a few things :)
This commit is contained in:
parent
ef0af66b21
commit
4c646436a5
246 changed files with 1122 additions and 124 deletions
|
|
@ -108,6 +108,7 @@ public final class LastActivityManager extends Manager {
|
|||
// Enable the LastActivity support on every established connection
|
||||
static {
|
||||
XMPPConnectionRegistry.addConnectionCreationListener(new ConnectionCreationListener() {
|
||||
@Override
|
||||
public void connectionCreated(XMPPConnection connection) {
|
||||
LastActivityManager.getInstanceFor(connection);
|
||||
}
|
||||
|
|
@ -135,6 +136,7 @@ public final class LastActivityManager extends Manager {
|
|||
|
||||
// Listen to all the sent messages to reset the idle time on each one
|
||||
connection.addPacketSendingListener(new StanzaListener() {
|
||||
@Override
|
||||
public void processStanza(Stanza packet) {
|
||||
Presence presence = (Presence) packet;
|
||||
Presence.Mode mode = presence.getMode();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue