diff options
Diffstat (limited to 'src/github/daneren2005/dsub/util/SilentBackgroundTask.java')
-rw-r--r-- | src/github/daneren2005/dsub/util/SilentBackgroundTask.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/github/daneren2005/dsub/util/SilentBackgroundTask.java b/src/github/daneren2005/dsub/util/SilentBackgroundTask.java index f361954a..a0db7ca4 100644 --- a/src/github/daneren2005/dsub/util/SilentBackgroundTask.java +++ b/src/github/daneren2005/dsub/util/SilentBackgroundTask.java @@ -18,19 +18,19 @@ */ package github.daneren2005.dsub.util; -import android.app.Activity; +import android.content.Context; /** * @author Sindre Mehus */ public abstract class SilentBackgroundTask<T> extends BackgroundTask<T> { - public SilentBackgroundTask(Activity activity) { - super(activity); + public SilentBackgroundTask(Context context) { + super(context); } @Override public void execute() { - queue.offer(new Task()); + queue.offer(task = new Task()); } @Override |