summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorMartin Fietz <martin.fietz@gmail.com>2018-01-09 20:13:14 +0100
committerMartin Fietz <martin.fietz@gmail.com>2018-01-09 20:13:14 +0100
commit59a1b4a2bb72e747cb86fc5fb6bb3c9a9811bb0b (patch)
treee86b5235c320b58c4dcb50fcf23ddbcdee73ad34 /core
parentb1c212c2fc62b96f272fc0cedf683018ff312801 (diff)
downloadAntennaPod-59a1b4a2bb72e747cb86fc5fb6bb3c9a9811bb0b.zip
Cleanup executeAsync
Diffstat (limited to 'core')
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/asynctask/FeedRemover.java7
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/asynctask/FlattrClickWorker.java7
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/asynctask/FlattrTokenFetcher.java7
3 files changed, 3 insertions, 18 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/asynctask/FeedRemover.java b/core/src/main/java/de/danoeh/antennapod/core/asynctask/FeedRemover.java
index 67c460e78..1a0772f16 100644
--- a/core/src/main/java/de/danoeh/antennapod/core/asynctask/FeedRemover.java
+++ b/core/src/main/java/de/danoeh/antennapod/core/asynctask/FeedRemover.java
@@ -55,13 +55,8 @@ public class FeedRemover extends AsyncTask<Void, Void, Void> {
dialog.show();
}
- @SuppressLint("NewApi")
public void executeAsync() {
- if (android.os.Build.VERSION.SDK_INT > android.os.Build.VERSION_CODES.GINGERBREAD_MR1) {
- executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
- } else {
- execute();
- }
+ executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
}
diff --git a/core/src/main/java/de/danoeh/antennapod/core/asynctask/FlattrClickWorker.java b/core/src/main/java/de/danoeh/antennapod/core/asynctask/FlattrClickWorker.java
index d991006e5..19501ea94 100644
--- a/core/src/main/java/de/danoeh/antennapod/core/asynctask/FlattrClickWorker.java
+++ b/core/src/main/java/de/danoeh/antennapod/core/asynctask/FlattrClickWorker.java
@@ -225,12 +225,7 @@ public class FlattrClickWorker extends AsyncTask<Void, Integer, FlattrClickWorke
/**
* Starts the FlattrClickWorker as an AsyncTask.
*/
- @TargetApi(11)
public void executeAsync() {
- if (android.os.Build.VERSION.SDK_INT > android.os.Build.VERSION_CODES.GINGERBREAD_MR1) {
- executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
- } else {
- execute();
- }
+ executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
}
diff --git a/core/src/main/java/de/danoeh/antennapod/core/asynctask/FlattrTokenFetcher.java b/core/src/main/java/de/danoeh/antennapod/core/asynctask/FlattrTokenFetcher.java
index 2513d1abd..5333b2273 100644
--- a/core/src/main/java/de/danoeh/antennapod/core/asynctask/FlattrTokenFetcher.java
+++ b/core/src/main/java/de/danoeh/antennapod/core/asynctask/FlattrTokenFetcher.java
@@ -80,13 +80,8 @@ public class FlattrTokenFetcher extends AsyncTask<Void, Void, AccessToken> {
}
}
- @SuppressLint("NewApi")
public void executeAsync() {
- if (android.os.Build.VERSION.SDK_INT > android.os.Build.VERSION_CODES.GINGERBREAD_MR1) {
- executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
- } else {
- execute();
- }
+ executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
}