Version guard download notification channel API 26+

This commit is contained in:
advplyr committed 2026-07-30 16:51:48 -05:00
1 parent 2cc9ff5a41
commit d3e55cabf4
1 file changed
+1
@@ -82,6 +82,7 @@ class DownloadService : Service() {
} }
private fun createChannel() { private fun createChannel() {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) return
val manager = getSystemService(NOTIFICATION_SERVICE) as NotificationManager val manager = getSystemService(NOTIFICATION_SERVICE) as NotificationManager
manager.createNotificationChannel( manager.createNotificationChannel(
NotificationChannel( NotificationChannel(