This commit is contained in:
Bnyro 2022-06-01 08:52:38 +02:00
parent c0b204d0b8
commit b6747e479d

View File

@ -319,7 +319,10 @@ class PlayerFragment : Fragment() {
super.onDestroy() super.onDestroy()
try { try {
exoPlayer.release() exoPlayer.release()
val nManager = context?.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager // kill notification
val nManager = context?.getSystemService(
Context.NOTIFICATION_SERVICE
) as NotificationManager
nManager.cancel(notificationId) nManager.cancel(notificationId)
} catch (e: Exception) { } catch (e: Exception) {
} }