From 104ee703bac0f7d5fb162d17c30f65f8071d07a6 Mon Sep 17 00:00:00 2001 From: Olivier Bouillet <62574056+freeboub@users.noreply.github.com> Date: Sat, 22 Jun 2024 10:55:40 +0200 Subject: [PATCH] fix(android): avoid crash multiplayer with notification (#3931) --- .../main/java/com/brentvatne/exoplayer/VideoPlaybackService.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/android/src/main/java/com/brentvatne/exoplayer/VideoPlaybackService.kt b/android/src/main/java/com/brentvatne/exoplayer/VideoPlaybackService.kt index ba2590e4..1a0da5be 100644 --- a/android/src/main/java/com/brentvatne/exoplayer/VideoPlaybackService.kt +++ b/android/src/main/java/com/brentvatne/exoplayer/VideoPlaybackService.kt @@ -69,8 +69,6 @@ class VideoPlaybackService : MediaSessionService() { hidePlayerNotification(player) val session = mediaSessionsList.remove(player) session?.release() - sourceActivity = null - if (mediaSessionsList.isEmpty()) { cleanup() stopSelf()