Conditionally adds the foreground service type to the ForegroundInfo object created in Notifications.kt method displayNotification.