forground/background logging without csi

This commit is contained in:
iNPUTmice 2014-10-16 15:39:09 +02:00
parent 45e0f99b88
commit 6cfb14a2e4

View File

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