diff options
author | Domingos Lopes <domingos86lopes+github@gmail.com> | 2016-04-17 15:32:23 -0400 |
---|---|---|
committer | Domingos Lopes <domingos86lopes+github@gmail.com> | 2016-04-24 22:06:27 -0400 |
commit | 5005cfdb3ad016174456df7cb30b7f726ea683ed (patch) | |
tree | 582ccca9aea51ebd91e688e4492b08f416856616 /app/src/main/java/de/danoeh/antennapod/activity | |
parent | 3aba2f9d4d1d2827d3baf73126050d2f0e09be90 (diff) | |
download | AntennaPod-5005cfdb3ad016174456df7cb30b7f726ea683ed.zip |
hide playback speed button when casting (upon button update)
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/activity')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java index e1a7bf704..7f70aa3ab 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java @@ -645,7 +645,8 @@ public abstract class MediaplayerActivity extends CastEnabledActivity implements if(butPlaybackSpeed == null) { 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); return; } |