aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2018-08-17 17:48:06 -0700
committerScott Jackson <daneren2005@gmail.com>2018-08-17 17:48:06 -0700
commit59273805ccb79a33d713d348d56a493e7fb7215a (patch)
tree8aa6690b75e177caca3e64c7400ed0ff078f8755 /app/src/main
parentf3c2f7d46309391119120ceb74c198e6062afb1c (diff)
downloaddsub-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')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/service/AutoMediaBrowserService.java3
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);
}