From d179eeacc6deb04cb9bf0b8bbe13531b9c61c367 Mon Sep 17 00:00:00 2001 From: daneren2005 Date: Wed, 13 Nov 2013 16:19:34 -0800 Subject: Bookmark button should be invisible in offline mode --- src/github/daneren2005/dsub/fragments/DownloadFragment.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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. -- cgit v1.2.3