aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-11-13 16:19:34 -0800
committerdaneren2005 <daneren2005@gmail.com>2013-11-13 16:19:34 -0800
commitd179eeacc6deb04cb9bf0b8bbe13531b9c61c367 (patch)
tree0c8339c066c2e34e860580b395d3568d77add580 /src
parent15ddacc196542228de9fc2566e2b591b883b2486 (diff)
downloaddsub-d179eeacc6deb04cb9bf0b8bbe13531b9c61c367.tar.gz
dsub-d179eeacc6deb04cb9bf0b8bbe13531b9c61c367.tar.bz2
dsub-d179eeacc6deb04cb9bf0b8bbe13531b9c61c367.zip
Bookmark button should be invisible in offline mode
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/fragments/DownloadFragment.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/fragments/DownloadFragment.java b/src/github/daneren2005/dsub/fragments/DownloadFragment.java
index 28679d2b..41096b9a 100644
--- a/src/github/daneren2005/dsub/fragments/DownloadFragment.java
+++ b/src/github/daneren2005/dsub/fragments/DownloadFragment.java
@@ -813,6 +813,12 @@ public class DownloadFragment extends SubsonicFragment implements OnGestureListe
boolean jukeboxEnabled = getDownloadService() != null && getDownloadService().isRemoteEnabled();
jukeboxButton.setTextColor(jukeboxEnabled ? COLOR_BUTTON_ENABLED : COLOR_BUTTON_DISABLED);
+
+ if(Util.isOffline) {
+ bookmarkButton.setVisibility(View.GONE);
+ } else {
+ bookmarkButton.setVisibility(View.VISIBLE);
+ }
}
// Scroll to current playing/downloading.