Cast certain playable information int values to long to prevent class cast exceptions
This commit is contained in:
parent
3aac3f1fc2
commit
1a7d8041bb
|
@ -1336,7 +1336,7 @@ public class PlaybackService extends MediaBrowserServiceCompat {
|
||||||
|
|
||||||
if (info.playable != null) {
|
if (info.playable != null) {
|
||||||
Intent i = new Intent(whatChanged);
|
Intent i = new Intent(whatChanged);
|
||||||
i.putExtra("id", 1);
|
i.putExtra("id", 1L);
|
||||||
i.putExtra("artist", "");
|
i.putExtra("artist", "");
|
||||||
i.putExtra("album", info.playable.getFeedTitle());
|
i.putExtra("album", info.playable.getFeedTitle());
|
||||||
i.putExtra("track", info.playable.getEpisodeTitle());
|
i.putExtra("track", info.playable.getEpisodeTitle());
|
||||||
|
@ -1345,8 +1345,8 @@ public class PlaybackService extends MediaBrowserServiceCompat {
|
||||||
if (queue != null) {
|
if (queue != null) {
|
||||||
i.putExtra("ListSize", queue.size());
|
i.putExtra("ListSize", queue.size());
|
||||||
}
|
}
|
||||||
i.putExtra("duration", info.playable.getDuration());
|
i.putExtra("duration", (long) info.playable.getDuration());
|
||||||
i.putExtra("position", info.playable.getPosition());
|
i.putExtra("position", (long) info.playable.getPosition());
|
||||||
sendBroadcast(i);
|
sendBroadcast(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue