hide playback speed button when casting (upon button update)

This commit is contained in:
Domingos Lopes 2016-04-17 15:32:23 -04:00
parent 3aba2f9d4d
commit 5005cfdb3a
1 changed files with 2 additions and 1 deletions

View File

@ -645,7 +645,8 @@ public abstract class MediaplayerActivity extends CastEnabledActivity implements
if(butPlaybackSpeed == null) { if(butPlaybackSpeed == null) {
return; return;
} }
if (controller == null) { // TODO this possibly needs to change if we introduce an alternative button
if (controller == null || !(this instanceof AudioplayerActivity)) {
butPlaybackSpeed.setVisibility(View.GONE); butPlaybackSpeed.setVisibility(View.GONE);
return; return;
} }