From fb1c6220a38693d57305e001e1134a4b23db3621 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Wed, 26 Sep 2018 21:00:40 +0200 Subject: fixed regression that would not dismiss video encoding notification --- src/main/java/de/pixart/messenger/services/XmppConnectionService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/de/pixart') 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")); } -- cgit v1.2.3