diff options
author | Martin Fietz <martin.fietz@gmail.com> | 2018-01-09 20:13:14 +0100 |
---|---|---|
committer | Martin Fietz <martin.fietz@gmail.com> | 2018-01-09 20:13:14 +0100 |
commit | 59a1b4a2bb72e747cb86fc5fb6bb3c9a9811bb0b (patch) | |
tree | e86b5235c320b58c4dcb50fcf23ddbcdee73ad34 /core | |
parent | b1c212c2fc62b96f272fc0cedf683018ff312801 (diff) | |
download | AntennaPod-59a1b4a2bb72e747cb86fc5fb6bb3c9a9811bb0b.zip |
Cleanup executeAsync
Diffstat (limited to 'core')
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); } } |