Revert hide notification explicitly

This commit is contained in:
Mygod
2021-07-25 00:37:05 -04:00
parent 1d6fe3def1
commit b2a65915fd

View File

@@ -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() {