diff options
author | Martin Fietz <Martin.Fietz@gmail.com> | 2016-12-04 13:41:23 +0100 |
---|---|---|
committer | Martin Fietz <Martin.Fietz@gmail.com> | 2016-12-04 13:41:23 +0100 |
commit | 1a7d8041bb60e226bd1ac03ad43557540199353c (patch) | |
tree | 15509bb4da41c25e95698f81004da4a0066fe394 /core | |
parent | 3aac3f1fc2189ba2957f12b44584f2221114faee (diff) | |
download | AntennaPod-1a7d8041bb60e226bd1ac03ad43557540199353c.zip |
Cast certain playable information int values to long to prevent class cast exceptions
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java index b556bba7a..2fb261beb 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java @@ -1336,7 +1336,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()); @@ -1345,8 +1345,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); } } |