From 6690d5391c6a6312485a19a95f6a31cc68687b96 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Tue, 26 Mar 2024 15:06:55 -0400 Subject: [PATCH] Fixes controller comparison for keep playing --- .../java/com/vitorpamplona/amethyst/ui/components/VideoView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/components/VideoView.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/components/VideoView.kt index 264a86ecf..0da522323 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/components/VideoView.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/components/VideoView.kt @@ -408,7 +408,7 @@ fun GetVideoController( val keepPlaying = remember(videoUri) { mutableStateOf( - keepPlayingMutex != null && controller == keepPlayingMutex, + keepPlayingMutex != null && controller.value == keepPlayingMutex, ) }