diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-02-18 16:06:03 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-02-18 16:06:03 -0800 |
commit | 2e2964235d96f85ba12ac3a87a233ae21bedb13d (patch) | |
tree | 5967f6f283c0ea06269688a9891a25bc53455ff1 /src/github/daneren2005/dsub/service/DownloadService.java | |
parent | 0fac4fb558fa9e22def8fd705973025fcf54f553 (diff) | |
download | dsub-2e2964235d96f85ba12ac3a87a233ae21bedb13d.tar.gz dsub-2e2964235d96f85ba12ac3a87a233ae21bedb13d.tar.bz2 dsub-2e2964235d96f85ba12ac3a87a233ae21bedb13d.zip |
Give names to all threads
Diffstat (limited to 'src/github/daneren2005/dsub/service/DownloadService.java')
-rw-r--r-- | src/github/daneren2005/dsub/service/DownloadService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java index d5664d25..f2383fdb 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -180,7 +180,7 @@ public class DownloadService extends Service { mediaPlayerHandler = new Handler(mediaPlayerLooper); Looper.loop(); } - }).start(); + }, "DownloadService").start(); Util.registerMediaButtonEventReceiver(this); @@ -993,7 +993,7 @@ public class DownloadService extends Service { if(playerState == STARTED && positionCache == null) { positionCache = new PositionCache(); - Thread thread = new Thread(positionCache); + Thread thread = new Thread(positionCache, "PositionCache"); thread.start(); } else if(playerState != STARTED && positionCache != null) { positionCache.stop(); |