From 0f2f108338e99cf6e912b71f68ef7a176407b5a2 Mon Sep 17 00:00:00 2001 From: flyingOwl Date: Wed, 24 Jan 2024 08:30:01 +0100 Subject: [PATCH] Fix multiselection behavior in playlist view Do not (permanently) cache all entries of a playlist when the user has made a selection. Only the selected songs are downloaded. When nothing is selected, it will still download the whole playlist. --- .../daneren2005/dsub/fragments/SelectDirectoryFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/app/src/main/java/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java index d3a0bfe84..7b4fd91fe 100644 --- a/app/src/main/java/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java +++ b/app/src/main/java/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java @@ -849,7 +849,7 @@ protected void executeOnValid(RecursiveLoader onValid) { @Override protected void downloadBackground(final boolean save) { List songs = getSelectedEntries(); - if(playlistId != null) { + if(songs.isEmpty() && playlistId != null) { songs = entries; }