mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-06 11:58:51 +02:00
Version guard download notification channel API 26+
This commit is contained in:
@@ -82,6 +82,7 @@ class DownloadService : Service() {
|
||||
}
|
||||
|
||||
private fun createChannel() {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) return
|
||||
val manager = getSystemService(NOTIFICATION_SERVICE) as NotificationManager
|
||||
manager.createNotificationChannel(
|
||||
NotificationChannel(
|
||||
|
||||
Reference in New Issue
Block a user