diff options
author | ByteHamster <info@bytehamster.com> | 2020-04-03 11:08:36 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2020-04-03 11:08:36 +0200 |
commit | 4855f2386d121d30963beb96e0105dad3096b50d (patch) | |
tree | 463441b93b1a9e712b6f6768019bdbb6c483a010 /core | |
parent | 09f9db878b2629fb207d4741ba3f2c48a0529725 (diff) | |
download | AntennaPod-4855f2386d121d30963beb96e0105dad3096b50d.zip |
Removed unused Executor
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java b/core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java index 428312393..8ea08f463 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java +++ b/core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java @@ -44,8 +44,6 @@ import org.greenrobot.eventbus.EventBus; import org.greenrobot.eventbus.Subscribe; import org.greenrobot.eventbus.ThreadMode; -import java.util.concurrent.ScheduledThreadPoolExecutor; - /** * Communicates with the playback service. GUI classes should use this class to * control playback instead of communicating with the PlaybackService directly. @@ -53,18 +51,13 @@ import java.util.concurrent.ScheduledThreadPoolExecutor; public class PlaybackController { private static final String TAG = "PlaybackController"; - private static final int INVALID_TIME = -1; private final Activity activity; - private PlaybackService playbackService; private Playable media; private PlayerStatus status = PlayerStatus.STOPPED; - private final ScheduledThreadPoolExecutor schedExecutor; - private static final int SCHED_EX_POOLSIZE = 1; - private boolean mediaInfoLoaded = false; private boolean released = false; private boolean initialized = false; @@ -74,15 +67,7 @@ public class PlaybackController { private Disposable mediaLoader; public PlaybackController(@NonNull Activity activity) { - this.activity = activity; - schedExecutor = new ScheduledThreadPoolExecutor(SCHED_EX_POOLSIZE, - r -> { - Thread t = new Thread(r); - t.setPriority(Thread.MIN_PRIORITY); - return t; - }, (r, executor) -> Log.w(TAG, "Rejected execution of runnable in schedExecutor") - ); } /** @@ -155,7 +140,6 @@ public class PlaybackController { } catch (IllegalArgumentException e) { // ignore } - schedExecutor.shutdownNow(); media = null; released = true; |