Commit fbee0814 authored by Geoffrey Métais's avatar Geoffrey Métais

Ensure last playlist locations encoding is correct

(cherry picked from commit 9172cbfe)
parent b16c0c2c
......@@ -407,7 +407,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
private fun saveMediaList() {
if (getCurrentMedia() === null) return
val locations = StringBuilder()
for (mw in mediaList.all) locations.append(" ").append(mw.uri.toString())
for (mw in mediaList.all) locations.append(" ").append(Uri.encode(Uri.decode(mw.uri.toString())))
//We save a concatenated String because putStringSet is APIv11.
.putString(if (!isAudioList()) "media_list" else "audio_list", locations.toString().trim { it <= ' ' })
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment