aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/services
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-11-11 00:16:43 +0100
committeriNPUTmice <daniel@gultsch.de>2014-11-11 00:16:43 +0100
commitfce78abb1cf985ac02af1c997ff8871f47ce97af (patch)
treea74622e4ebf398116ad75b5e8a3a835f94030c45 /src/main/java/eu/siacs/conversations/services
parentc8a6b051639528f4e8e39ff09e4bda36e3191f10 (diff)
temporarliy got rid of some insane work arounds in favor of some maybe less insane work arounds
Diffstat (limited to 'src/main/java/eu/siacs/conversations/services')
-rw-r--r--src/main/java/eu/siacs/conversations/services/XmppConnectionService.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
index dea0c050..831a54e1 100644
--- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
+++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
@@ -401,10 +401,10 @@ public class XmppConnectionService extends Service {
}
}
}
- PowerManager pm = (PowerManager) this.getSystemService(Context.POWER_SERVICE);
+ /*PowerManager pm = (PowerManager) this.getSystemService(Context.POWER_SERVICE);
if (!pm.isScreenOn()) {
removeStaleListeners();
- }
+ }*/
if (wakeLock.isHeld()) {
try {
wakeLock.release();
@@ -1080,11 +1080,11 @@ public class XmppConnectionService extends Service {
public void setOnConversationListChangedListener(
OnConversationUpdate listener) {
- if (!isScreenOn()) {
+ /*if (!isScreenOn()) {
Log.d(Config.LOGTAG,
"ignoring setOnConversationListChangedListener");
return;
- }
+ }*/
synchronized (this.convChangedListenerCount) {
if (checkListeners()) {
switchToForeground();
@@ -1110,10 +1110,10 @@ public class XmppConnectionService extends Service {
}
public void setOnAccountListChangedListener(OnAccountUpdate listener) {
- if (!isScreenOn()) {
+ /*if (!isScreenOn()) {
Log.d(Config.LOGTAG, "ignoring setOnAccountListChangedListener");
return;
- }
+ }*/
synchronized (this.accountChangedListenerCount) {
if (checkListeners()) {
switchToForeground();
@@ -1137,10 +1137,10 @@ public class XmppConnectionService extends Service {
}
public void setOnRosterUpdateListener(OnRosterUpdate listener) {
- if (!isScreenOn()) {
+ /*if (!isScreenOn()) {
Log.d(Config.LOGTAG, "ignoring setOnRosterUpdateListener");
return;
- }
+ }*/
synchronized (this.rosterChangedListenerCount) {
if (checkListeners()) {
switchToForeground();