summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/asynctask/DownloadObserver.java
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2012-07-22 13:06:25 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2012-07-22 13:06:25 +0200
commit4a7b6d439edfad289a7cc1f34de4bf1dc2509e0b (patch)
treee941fd0675f6f5a27b9710e4c3d085f66e261962 /src/de/danoeh/antennapod/asynctask/DownloadObserver.java
parentf0edc0558b19bd8185e84876a233d1930c5867f5 (diff)
downloadAntennaPod-4a7b6d439edfad289a7cc1f34de4bf1dc2509e0b.zip
Replaced buildconfig condition with appconfig condition
Diffstat (limited to 'src/de/danoeh/antennapod/asynctask/DownloadObserver.java')
-rw-r--r--src/de/danoeh/antennapod/asynctask/DownloadObserver.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/de/danoeh/antennapod/asynctask/DownloadObserver.java b/src/de/danoeh/antennapod/asynctask/DownloadObserver.java
index 3a5672c82..0a75a4471 100644
--- a/src/de/danoeh/antennapod/asynctask/DownloadObserver.java
+++ b/src/de/danoeh/antennapod/asynctask/DownloadObserver.java
@@ -11,7 +11,7 @@ import android.os.AsyncTask;
import android.util.Log;
import de.danoeh.antennapod.feed.FeedFile;
import de.danoeh.antennapod.storage.DownloadRequester;
-import de.danoeh.antennapod.BuildConfig;
+import de.danoeh.antennapod.AppConfig;
import de.danoeh.antennapod.R;
/** Observes the status of a specific Download */
@@ -45,7 +45,7 @@ public class DownloadObserver extends AsyncTask<Void, Void, Void> {
@Override
protected void onCancelled() {
- if (BuildConfig.DEBUG) Log.d(TAG, "Task was cancelled.");
+ if (AppConfig.DEBUG) Log.d(TAG, "Task was cancelled.");
statusList.clear();
for (DownloadObserver.Callback callback : observer) {
callback.onFinish();
@@ -54,7 +54,7 @@ public class DownloadObserver extends AsyncTask<Void, Void, Void> {
@Override
protected void onPostExecute(Void result) {
- if (BuildConfig.DEBUG) Log.d(TAG, "Background task has finished");
+ if (AppConfig.DEBUG) Log.d(TAG, "Background task has finished");
statusList.clear();
for (DownloadObserver.Callback callback : observer) {
callback.onFinish();
@@ -62,7 +62,7 @@ public class DownloadObserver extends AsyncTask<Void, Void, Void> {
}
protected Void doInBackground(Void... params) {
- if (BuildConfig.DEBUG) Log.d(TAG, "Background Task started.");
+ if (AppConfig.DEBUG) Log.d(TAG, "Background Task started.");
while (downloadsLeft() && !isCancelled()) {
refreshStatuslist();
publishProgress();
@@ -72,7 +72,7 @@ public class DownloadObserver extends AsyncTask<Void, Void, Void> {
Log.w(TAG, "Thread was interrupted while waiting.");
}
}
- if (BuildConfig.DEBUG) Log.d(TAG, "Background Task finished.");
+ if (AppConfig.DEBUG) Log.d(TAG, "Background Task finished.");
return null;
}