aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-10-22 18:31:18 -0700
committerScott Jackson <daneren2005@gmail.com>2015-10-22 18:31:18 -0700
commit0b16cf95e6bb9d197f837dc38761b6a5394e6726 (patch)
tree926d2893963dcfd302719b518910154f548da20f /app/src/main/java
parent399b2ebca911f3523bd1b9d346eab9c9b9862303 (diff)
downloaddsub-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/src/main/java')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java2
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)));