Revert a change from commit b4f3697550c730e74fb2b81a71e700944ed91daa

This commit is contained in:
Sylvain Berfini 2020-05-27 20:39:40 +02:00
parent b24d68ef44
commit c1f0e624ca

View file

@ -388,12 +388,12 @@ class NotificationsManager(private val context: Context) {
.setCustomHeadsUpContentView(notificationLayoutHeadsUp) .setCustomHeadsUpContentView(notificationLayoutHeadsUp)
.build() .build()
Log.i("[Notifications Manager] Notifying incoming call notification")
notify(notifiable.notificationId, notification)
if (useAsForeground) { if (useAsForeground) {
Log.i("[Notifications Manager] Notifying incoming call notification for foreground service") Log.i("[Notifications Manager] Notifying incoming call notification for foreground service")
startForeground(notifiable.notificationId, notification) startForeground(notifiable.notificationId, notification)
} else {
Log.i("[Notifications Manager] Notifying incoming call notification")
notify(notifiable.notificationId, notification)
} }
} }