diff options
author | Domingos Lopes <domingos86lopes+github@gmail.com> | 2016-04-17 13:17:58 -0400 |
---|---|---|
committer | Domingos Lopes <domingos86lopes+github@gmail.com> | 2016-04-24 22:06:27 -0400 |
commit | d47e4a93316e7025a200dae17537e9bc343756d9 (patch) | |
tree | a7f4f9a978390dac66f08c9284755512830df79f /core/src | |
parent | 280efd56d7c4be432de25064d7d48d895eb99190 (diff) | |
download | AntennaPod-d47e4a93316e7025a200dae17537e9bc343756d9.zip |
do not use circular buttons for video while casting
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java b/core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java index 4eb6535da..61b39f848 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java +++ b/core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java @@ -401,7 +401,8 @@ public abstract class PlaybackController { final CharSequence playText = activity.getString(R.string.play_label); final CharSequence pauseText = activity.getString(R.string.pause_label); - if (PlaybackService.getCurrentMediaType() == MediaType.AUDIO) { + if (PlaybackService.getCurrentMediaType() == MediaType.AUDIO || + PlaybackService.isCasting()) { TypedArray res = activity.obtainStyledAttributes(new int[]{ R.attr.av_play_big, R.attr.av_pause_big}); playResource = res.getResourceId(0, R.drawable.ic_play_arrow_grey600_36dp); |