diff options
Diffstat (limited to 'subsonic-android/src')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java index 8d96499d..3fb87be1 100644 --- a/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java +++ b/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java @@ -540,10 +540,10 @@ public class DownloadActivity extends SubsonicTabActivity implements OnGestureLi else inflater.inflate(R.menu.nowplaying_downloading, menu); - if(getDownloadService().getSleepTimer()) { + if(getDownloadService() != null && getDownloadService().getSleepTimer()) { menu.findItem(R.id.menu_toggle_timer).setTitle(R.string.download_stop_timer); } - if(getDownloadService().getKeepScreenOn()) { + if(getDownloadService() != null && getDownloadService().getKeepScreenOn()) { menu.findItem(R.id.menu_screen_on_off).setTitle(R.string.download_menu_screen_off); } } |