diff options
Diffstat (limited to 'src/main/java/de')
-rw-r--r-- | src/main/java/de/pixart/messenger/services/XmppConnectionService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java index 1b1ad1829..e356acf69 100644 --- a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java +++ b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java @@ -1234,14 +1234,14 @@ public class XmppConnectionService extends Service { public void toggleForegroundService() { final boolean status; - if (mForceForegroundService.get() || (Compatibility.keepForegroundService(this) && hasEnabledAccounts())) { + if (mForceForegroundService.get() || (Compatibility.keepForegroundService(this)/* && hasEnabledAccounts()*/)) { startForeground(NotificationService.FOREGROUND_NOTIFICATION_ID, this.mNotificationService.createForegroundNotification()); status = true; } else { stopForeground(true); - mNotificationService.dismissForcedForegroundNotification(); //if the channel was changed the previous call might fail status = false; } + mNotificationService.dismissForcedForegroundNotification(); //if the channel was changed the previous call might fail Log.d(Config.LOGTAG, "ForegroundService: " + (status ? "on" : "off")); } |