do not use circular buttons for video while casting

This commit is contained in:
Domingos Lopes 2016-04-17 13:17:58 -04:00
parent 280efd56d7
commit d47e4a9331
1 changed files with 2 additions and 1 deletions

View File

@ -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);