From eeec6fd002353f9155d85e268e7741e29e6fe9ab Mon Sep 17 00:00:00 2001 From: TobiGr Date: Mon, 17 Jul 2023 01:26:44 +0200 Subject: [PATCH] Replace null check with use of NotificationManagerCompat.from --- .../newpipe/local/feed/notifications/NotificationHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/local/feed/notifications/NotificationHelper.kt b/app/src/main/java/org/schabi/newpipe/local/feed/notifications/NotificationHelper.kt index 228f58a2f..94b3040a0 100644 --- a/app/src/main/java/org/schabi/newpipe/local/feed/notifications/NotificationHelper.kt +++ b/app/src/main/java/org/schabi/newpipe/local/feed/notifications/NotificationHelper.kt @@ -28,7 +28,7 @@ import org.schabi.newpipe.util.PicassoHelper * Helper for everything related to show notifications about new streams to the user. */ class NotificationHelper(val context: Context) { - private val manager = context.getSystemService()!! + private val manager = NotificationManagerCompat.from(context) private val iconLoadingTargets = ArrayList() /**