diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-08-27 20:05:16 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-08-27 20:05:16 -0700 |
commit | 35ad6f8dc17cf3e5231981ac025ad6ef6fcea3a4 (patch) | |
tree | 6b2018c9e11de51fef1472e420117c37f3ddcc89 /src | |
parent | 6f704cbc8e6b97d0e4f217798d8bfdcc4897f3f4 (diff) | |
download | dsub-35ad6f8dc17cf3e5231981ac025ad6ef6fcea3a4.tar.gz dsub-35ad6f8dc17cf3e5231981ac025ad6ef6fcea3a4.tar.bz2 dsub-35ad6f8dc17cf3e5231981ac025ad6ef6fcea3a4.zip |
Fix shuffle buffer change causing crash due to invalid context
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/service/DownloadService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java index 54df07ac..a21bbd91 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -111,7 +111,7 @@ public class DownloadService extends Service { private final Handler handler = new Handler(); private Handler mediaPlayerHandler; private final DownloadServiceLifecycleSupport lifecycleSupport = new DownloadServiceLifecycleSupport(this); - private final ShufflePlayBuffer shufflePlayBuffer = new ShufflePlayBuffer(this); + private ShufflePlayBuffer shufflePlayBuffer; private final LruCache<MusicDirectory.Entry, DownloadFile> downloadFileCache = new LruCache<MusicDirectory.Entry, DownloadFile>(100); private final List<DownloadFile> cleanupCandidates = new ArrayList<DownloadFile>(); @@ -224,6 +224,7 @@ public class DownloadService extends Service { instance = this; lifecycleSupport.onCreate(); + shufflePlayBuffer = new ShufflePlayBuffer(this); } @Override |