diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-10-22 18:31:18 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-10-22 18:31:18 -0700 |
commit | 0b16cf95e6bb9d197f837dc38761b6a5394e6726 (patch) | |
tree | 926d2893963dcfd302719b518910154f548da20f /app | |
parent | 399b2ebca911f3523bd1b9d346eab9c9b9862303 (diff) | |
download | dsub-0b16cf95e6bb9d197f837dc38761b6a5394e6726.tar.gz dsub-0b16cf95e6bb9d197f837dc38761b6a5394e6726.tar.bz2 dsub-0b16cf95e6bb9d197f837dc38761b6a5394e6726.zip |
Not sure how download service can be null when this is called by the download service, but sure why not
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java | 2 |
1 files changed, 1 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 5a3b8cf5..c557a174 100644 --- a/app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java +++ b/app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java @@ -1230,7 +1230,7 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis } DownloadService downloadService = getDownloadService(); - if(downloadService.getSleepTimer() && timerMenu != null) { + if(downloadService != null && downloadService.getSleepTimer() && timerMenu != null) { int timeRemaining = downloadService.getSleepTimeRemaining(); if(timeRemaining > 1){ timerMenu.setTitle(context.getResources().getString(R.string.download_stop_time_remaining, Util.formatDuration(timeRemaining))); |