From 59273805ccb79a33d713d348d56a493e7fb7215a Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Fri, 17 Aug 2018 17:48:06 -0700 Subject: Fixes #872: Don't try to serialize Entry since it crashes Android Auto --- .../java/github/daneren2005/dsub/service/AutoMediaBrowserService.java | 3 --- 1 file changed, 3 deletions(-) (limited to 'app/src/main/java/github') 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); } -- cgit v1.2.3