diff --git a/app/src/main/java/org/jellyfin/mobile/player/interaction/PlayerNotificationHelper.kt b/app/src/main/java/org/jellyfin/mobile/player/interaction/PlayerNotificationHelper.kt index b2e686714..5b8ca57db 100644 --- a/app/src/main/java/org/jellyfin/mobile/player/interaction/PlayerNotificationHelper.kt +++ b/app/src/main/java/org/jellyfin/mobile/player/interaction/PlayerNotificationHelper.kt @@ -114,6 +114,9 @@ class PlayerNotificationHelper(private val viewModel: PlayerViewModel) : KoinCom } setContentIntent(buildContentIntent()) setDeleteIntent(buildDeleteIntent()) + + // prevents the notification from being dismissed while playback is ongoing + setOngoing(player.isPlaying) }.build() nm.notify(VIDEO_PLAYER_NOTIFICATION_ID, notification)