forground/background logging without csi

This commit is contained in:
iNPUTmice 2014-10-16 15:39:09 +02:00
parent 45e0f99b88
commit 6cfb14a2e4
1 changed files with 2 additions and 4 deletions

View File

@ -1110,11 +1110,10 @@ public class XmppConnectionService extends Service {
XmppConnection connection = account.getXmppConnection();
if (connection != null && connection.getFeatures().csi()) {
connection.sendActive();
Log.d(Config.LOGTAG, account.getJid()
+ " sending csi//active");
}
}
}
Log.d(Config.LOGTAG,"app switched into foreground");
}
private void switchToBackground() {
@ -1123,11 +1122,10 @@ public class XmppConnectionService extends Service {
XmppConnection connection = account.getXmppConnection();
if (connection != null && connection.getFeatures().csi()) {
connection.sendInactive();
Log.d(Config.LOGTAG, account.getJid()
+ " sending csi//inactive");
}
}
}
Log.d(Config.LOGTAG,"app switched into background");
}
private boolean isScreenOn() {