Skip to content

Commit eeec6fd

Browse files
committed
Replace null check with use of NotificationManagerCompat.from
1 parent 795bc82 commit eeec6fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/local/feed/notifications/NotificationHelper.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import org.schabi.newpipe.util.PicassoHelper
2828
* Helper for everything related to show notifications about new streams to the user.
2929
*/
3030
class NotificationHelper(val context: Context) {
31-
private val manager = context.getSystemService<NotificationManager>()!!
31+
private val manager = NotificationManagerCompat.from(context)
3232
private val iconLoadingTargets = ArrayList<Target>()
3333

3434
/**

0 commit comments

Comments
 (0)