Merge pull request #2205 from mfietz/issue/2134-cast-exception
Prevent ClassCastException
This commit is contained in:
commit
4878a30d66
|
@ -1342,7 +1342,7 @@ public class PlaybackService extends MediaBrowserServiceCompat {
|
|||
|
||||
if (info.playable != null) {
|
||||
Intent i = new Intent(whatChanged);
|
||||
i.putExtra("id", 1);
|
||||
i.putExtra("id", 1L);
|
||||
i.putExtra("artist", "");
|
||||
i.putExtra("album", info.playable.getFeedTitle());
|
||||
i.putExtra("track", info.playable.getEpisodeTitle());
|
||||
|
@ -1351,8 +1351,8 @@ public class PlaybackService extends MediaBrowserServiceCompat {
|
|||
if (queue != null) {
|
||||
i.putExtra("ListSize", queue.size());
|
||||
}
|
||||
i.putExtra("duration", info.playable.getDuration());
|
||||
i.putExtra("position", info.playable.getPosition());
|
||||
i.putExtra("duration", (long) info.playable.getDuration());
|
||||
i.putExtra("position", (long) info.playable.getPosition());
|
||||
sendBroadcast(i);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue