From b2a65915fd44f23db946c5edb89f56d911078871 Mon Sep 17 00:00:00 2001 From: Mygod Date: Sun, 25 Jul 2021 00:37:05 -0400 Subject: [PATCH] Revert hide notification explicitly --- mobile/src/main/java/be/mygod/vpnhotspot/ServiceNotification.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/ServiceNotification.kt b/mobile/src/main/java/be/mygod/vpnhotspot/ServiceNotification.kt index cabea3aa..caacd93b 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/ServiceNotification.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/ServiceNotification.kt @@ -64,7 +64,7 @@ object ServiceNotification { fun stopForeground(service: Service) = synchronized(this) { val shutdown = deviceCountsMap.remove(service) != null && deviceCountsMap.isEmpty() service.stopForeground(shutdown) - if (shutdown) manager.cancel(NOTIFICATION_ID) else manager.notify(NOTIFICATION_ID, buildNotification(service)) + if (!shutdown) manager.notify(NOTIFICATION_ID, buildNotification(service)) } fun updateNotificationChannels() {