diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-12-02 21:56:43 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-12-02 21:56:43 -0800 |
commit | 60abf7d67016adbfa4a43b442f9252328271d4b7 (patch) | |
tree | 6f53e14d4f25fcb8a674f9084f627db0675b86a2 | |
parent | ee03f7b71334f10f960d775d0468622490c08504 (diff) | |
download | dsub-60abf7d67016adbfa4a43b442f9252328271d4b7.tar.gz dsub-60abf7d67016adbfa4a43b442f9252328271d4b7.tar.bz2 dsub-60abf7d67016adbfa4a43b442f9252328271d4b7.zip |
Fix bookmarks for podcasts using the wrong name
-rw-r--r-- | src/github/daneren2005/dsub/service/parser/BookmarkParser.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/parser/BookmarkParser.java b/src/github/daneren2005/dsub/service/parser/BookmarkParser.java index 8af509f0..a71e0e8b 100644 --- a/src/github/daneren2005/dsub/service/parser/BookmarkParser.java +++ b/src/github/daneren2005/dsub/service/parser/BookmarkParser.java @@ -21,6 +21,7 @@ package github.daneren2005.dsub.service.parser; import android.content.Context; import github.daneren2005.dsub.R; import github.daneren2005.dsub.domain.Bookmark; +import github.daneren2005.dsub.domain.MusicDirectory; import github.daneren2005.dsub.util.ProgressListener; import org.xmlpull.v1.XmlPullParser; import java.io.Reader; @@ -57,7 +58,9 @@ public class BookmarkParser extends MusicDirectoryEntryParser { bookmark.setPosition(getInteger("position")); bookmark.setUsername(get("username")); } else if ("entry".equals(name)) { - bookmark.setEntry(parseEntry(null)); + MusicDirectory.Entry entry = parseEntry(null); + entry.setTrack(null); + bookmark.setEntry(entry); bookmarks.add(bookmark); } else if ("error".equals(name)) { handleError(); |