aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/fragments/DownloadFragment.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/fragments/DownloadFragment.java b/src/github/daneren2005/dsub/fragments/DownloadFragment.java
index 6da6ca70..28679d2b 100644
--- a/src/github/daneren2005/dsub/fragments/DownloadFragment.java
+++ b/src/github/daneren2005/dsub/fragments/DownloadFragment.java
@@ -794,6 +794,10 @@ public class DownloadFragment extends SubsonicFragment implements OnGestureListe
}
private void updateButtons() {
+ if(context == null) {
+ return;
+ }
+
SharedPreferences prefs = Util.getPreferences(context);
boolean equalizerOn = prefs.getBoolean(Constants.PREFERENCES_EQUALIZER_ON, false);
if(equalizerOn && getDownloadService() != null && getDownloadService().getEqualizerController() != null &&