aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-09-26 21:00:40 +0200
committerChristian Schneppe <christian@pix-art.de>2018-09-26 21:00:40 +0200
commitfb1c6220a38693d57305e001e1134a4b23db3621 (patch)
tree341f38a0da3ea5e8f9ee1bf95dcf4f71683166dd /src/main
parent935e0a8cb9156763213acc10046f7b40c9365484 (diff)
fixed regression that would not dismiss video encoding notification
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/de/pixart/messenger/services/XmppConnectionService.java4
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"));
}