aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java b/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java
index 0c801fd6..e0019559 100644
--- a/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java
+++ b/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java
@@ -116,7 +116,7 @@ public class DownloadServiceLifecycleSupport {
public void run() {
Looper.prepare();
eventLooper = Looper.myLooper();
- eventHandler = new Handler(mediaPlayerLooper);
+ eventHandler = new Handler(eventLooper);
Looper.loop();
}
}).start();
@@ -189,7 +189,6 @@ public class DownloadServiceLifecycleSupport {
@Override
public void run() {
if(!setup.get()) {
- locked = true;
lock.lock();
lock.unlock();
}
@@ -338,7 +337,7 @@ public class DownloadServiceLifecycleSupport {
private boolean resumeAfterCall;
@Override
- public void onCallStateChanged(int state, String incomingNumber) {
+ public void onCallStateChanged(final int state, String incomingNumber) {
eventHandler.post(new Runnable() {
@Override
public void run() {