From 2032c1a8208eb7812051259d7a31283e2e652527 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sat, 24 Aug 2013 17:35:17 -0700 Subject: Fix syntax error --- .../daneren2005/dsub/service/DownloadServiceLifecycleSupport.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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() { -- cgit v1.2.3