aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-11-05 14:17:19 -0800
committerScott Jackson <daneren2005@gmail.com>2014-11-05 14:17:19 -0800
commita1ffd954c2b1d0a4907424187ea8b7db3f697e02 (patch)
tree50cf38e8d92b4fb9a139c04516bc548672045145 /src/github
parentede21d014b26a1f9d68b11fc7de64f8bd316c571 (diff)
downloaddsub-a1ffd954c2b1d0a4907424187ea8b7db3f697e02.tar.gz
dsub-a1ffd954c2b1d0a4907424187ea8b7db3f697e02.tar.bz2
dsub-a1ffd954c2b1d0a4907424187ea8b7db3f697e02.zip
Allow downloadService to post runnables to service thread
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/service/DownloadService.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java
index 50a2d34e..addcb0a2 100644
--- a/src/github/daneren2005/dsub/service/DownloadService.java
+++ b/src/github/daneren2005/dsub/service/DownloadService.java
@@ -300,6 +300,10 @@ public class DownloadService extends Service {
public IBinder onBind(Intent intent) {
return binder;
}
+
+ public void post(Runnable r) {
+ handler.post(r);
+ }
public synchronized void download(List<MusicDirectory.Entry> songs, boolean save, boolean autoplay, boolean playNext, boolean shuffle) {
download(songs, save, autoplay, playNext, shuffle, 0, 0);