1
0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2024-11-22 11:02:35 +01:00

Replace null check with use of NotificationManagerCompat.from

This commit is contained in:
TobiGr 2023-07-17 01:26:44 +02:00
parent 795bc82c7f
commit eeec6fd002

View File

@ -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<NotificationManager>()!!
private val manager = NotificationManagerCompat.from(context)
private val iconLoadingTargets = ArrayList<Target>()
/**