aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-05-04 21:37:34 -0700
committerScott Jackson <daneren2005@gmail.com>2016-05-04 21:37:34 -0700
commita351831caceb87c5da5599c8ad5eb633ea4d8264 (patch)
tree695eadffc3fd6cfd840c244f98c7af592152be85 /app
parent54e52d3cd7624c3053d0c83e87799a1388731cbb (diff)
downloaddsub-a351831caceb87c5da5599c8ad5eb633ea4d8264.tar.gz
dsub-a351831caceb87c5da5599c8ad5eb633ea4d8264.tar.bz2
dsub-a351831caceb87c5da5599c8ad5eb633ea4d8264.zip
#170 Don't show variable speed when casting
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java b/app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java
index e4984fce..3831a4c0 100644
--- a/app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java
+++ b/app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java
@@ -511,7 +511,8 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis
}
boolean equalizerAvailable = downloadService != null && downloadService.getEqualizerAvailable();
- if(equalizerAvailable && !downloadService.isRemoteEnabled()) {
+ boolean isRemoteEnabled = downloadService != null && downloadService.isRemoteEnabled();
+ if(equalizerAvailable && !isRemoteEnabled) {
SharedPreferences prefs = Util.getPreferences(context);
boolean equalizerOn = prefs.getBoolean(Constants.PREFERENCES_EQUALIZER_ON, false);
if (equalizerOn && downloadService != null) {
@@ -523,6 +524,12 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis
menu.removeItem(R.id.menu_equalizer);
}
+ if(isRemoteEnabled) {
+ playbackSpeedButton.setVisibility(View.GONE);
+ } else {
+ playbackSpeedButton.setVisibility(View.VISIBLE);
+ }
+
if(downloadService != null) {
MenuItem mediaRouteItem = menu.findItem(R.id.menu_mediaroute);
if(mediaRouteItem != null) {