aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-06-01 21:52:33 +0200
committerChristian Schneppe <christian@pix-art.de>2018-06-01 21:52:33 +0200
commit0a9e68e77ea53fa051e4050e1a63ea15930f4943 (patch)
tree48544d7143041c306184cd1ee0e051fe7a439982 /src/main/java/de/pixart/messenger/services/XmppConnectionService.java
parent51439dc2e59a5d8ff3ef8b68b32c5617f7ebec27 (diff)
add more logging to setIsInForeground
Diffstat (limited to '')
-rw-r--r--src/main/java/de/pixart/messenger/services/XmppConnectionService.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
index 988f247f0..cf3dd7462 100644
--- a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
+++ b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
@@ -2124,6 +2124,7 @@ public class XmppConnectionService extends Service {
switchToForeground();
}
this.mOnConversationUpdates.add(listener);
+ Log.d(Config.LOGTAG, "XmppConnectionService setOnConversationListChangedListener(): setIsInForeground = " + (this.mOnConversationUpdates.size() > 0));
this.mNotificationService.setIsInForeground(this.mOnConversationUpdates.size() > 0);
}
}
@@ -2131,6 +2132,7 @@ public class XmppConnectionService extends Service {
public void removeOnConversationListChangedListener(OnConversationUpdate listener) {
synchronized (this) {
this.mOnConversationUpdates.remove(listener);
+ Log.d(Config.LOGTAG, "XmppConnectionService removeOnConversationListChangedListener(): setIsInForeground = " + (this.mOnConversationUpdates.size() > 0));
this.mNotificationService.setIsInForeground(this.mOnConversationUpdates.size() > 0);
if (checkListeners()) {
switchToBackground();
@@ -2321,6 +2323,7 @@ public class XmppConnectionService extends Service {
}
}
}
+ Log.d(Config.LOGTAG, "XmppConnectionService switchToBackground(): setIsInForeground = false");
this.mNotificationService.setIsInForeground(false);
Log.d(Config.LOGTAG, "app switched into background");
}