From abe4255986f2916c018ecbb9db6e3d6153136cb1 Mon Sep 17 00:00:00 2001 From: Alexander Capehart Date: Thu, 8 Jun 2023 13:33:30 -0600 Subject: [PATCH] list: actually update playlist selections Remove an incorrect change check resulting in the selection not updating when playlist information changed. Resolves #476. --- CHANGELOG.md | 1 + .../java/org/oxycblt/auxio/list/selection/SelectionViewModel.kt | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 72e2fbf10..4c61131ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ #### What's Fixed - Disc number is no longer mis-aligned when no subtitle is present +- Fixed selection not updating when playlists are changed ## 3.1.1 diff --git a/app/src/main/java/org/oxycblt/auxio/list/selection/SelectionViewModel.kt b/app/src/main/java/org/oxycblt/auxio/list/selection/SelectionViewModel.kt index a5cfd776e..3f4efdd0e 100644 --- a/app/src/main/java/org/oxycblt/auxio/list/selection/SelectionViewModel.kt +++ b/app/src/main/java/org/oxycblt/auxio/list/selection/SelectionViewModel.kt @@ -56,7 +56,6 @@ constructor( } override fun onMusicChanges(changes: MusicRepository.Changes) { - if (!changes.deviceLibrary) return val deviceLibrary = musicRepository.deviceLibrary ?: return val userLibrary = musicRepository.userLibrary ?: return // Sanitize the selection to remove items that no longer exist and thus