diff options
author | Scott Jackson <daneren2005@gmail.com> | 2018-08-17 17:48:06 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2018-08-17 17:48:06 -0700 |
commit | 59273805ccb79a33d713d348d56a493e7fb7215a (patch) | |
tree | 8aa6690b75e177caca3e64c7400ed0ff078f8755 /app/src/main/java | |
parent | f3c2f7d46309391119120ceb74c198e6062afb1c (diff) | |
download | dsub-59273805ccb79a33d713d348d56a493e7fb7215a.tar.gz dsub-59273805ccb79a33d713d348d56a493e7fb7215a.tar.bz2 dsub-59273805ccb79a33d713d348d56a493e7fb7215a.zip |
Fixes #872: Don't try to serialize Entry since it crashes Android Auto
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/service/AutoMediaBrowserService.java | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/service/AutoMediaBrowserService.java b/app/src/main/java/github/daneren2005/dsub/service/AutoMediaBrowserService.java index 88cfe559..6e3edd8c 100644 --- a/app/src/main/java/github/daneren2005/dsub/service/AutoMediaBrowserService.java +++ b/app/src/main/java/github/daneren2005/dsub/service/AutoMediaBrowserService.java @@ -325,9 +325,7 @@ public class AutoMediaBrowserService extends MediaBrowserService { mediaItems.add(new MediaBrowser.MediaItem(description, MediaBrowser.MediaItem.FLAG_BROWSABLE)); } else { // mark individual songs as directly playable - entry.setBookmark(null); // don't resume from a bookmark in a browse listing Bundle extras = new Bundle(); - extras.putSerializable(Constants.INTENT_EXTRA_ENTRY, entry); extras.putString(Constants.INTENT_EXTRA_NAME_CHILD_ID, entry.getId()); description = new MediaDescription.Builder() @@ -338,7 +336,6 @@ public class AutoMediaBrowserService extends MediaBrowserService { mediaItems.add(new MediaBrowser.MediaItem(description, MediaBrowser.MediaItem.FLAG_PLAYABLE)); } - } result.sendResult(mediaItems); } |