summaryrefslogtreecommitdiff
path: root/core/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main')
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java16
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;