daneren2005 / Subsonic

Home of the DSub Android client fork
GNU General Public License v3.0
583 stars 162 forks source link

Fix multiselection behavior in playlist view #1158

Open flyingOwl opened 10 months ago

flyingOwl commented 10 months ago

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.

All menu items on the playlist view should be aware of a selection made by the user. Currently, the "Cache" and "Permanent Cache" items will download the whole list even when there is a selection. This is because the list of songs to download is overwritten with all playlist entries in downloadBackground() when the app shows a playlist. My change will skip this if the user has selected songs which are returned by getSelectedEntries().