summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2020-02-02 17:56:57 +0100
committerByteHamster <info@bytehamster.com>2020-02-02 18:42:10 +0100
commit719af170a704e3172d45e4ae952228761b092285 (patch)
tree31fedbefdd5ba60a343e5dbf1061f8f03013c766 /core
parentb656cb91a2a9b6aa6395b648195e4eb49e07f8da (diff)
downloadAntennaPod-719af170a704e3172d45e4ae952228761b092285.zip
Enforce SeparatorWrap
Diffstat (limited to 'core')
-rw-r--r--core/src/play/java/de/danoeh/antennapod/core/cast/CastManager.java13
-rw-r--r--core/src/test/java/de/danoeh/antennapod/core/storage/ItemEnqueuePositionCalculatorTest.java4
2 files changed, 6 insertions, 11 deletions
diff --git a/core/src/play/java/de/danoeh/antennapod/core/cast/CastManager.java b/core/src/play/java/de/danoeh/antennapod/core/cast/CastManager.java
index bf9ef3f5b..5014a1fc5 100644
--- a/core/src/play/java/de/danoeh/antennapod/core/cast/CastManager.java
+++ b/core/src/play/java/de/danoeh/antennapod/core/cast/CastManager.java
@@ -1243,14 +1243,11 @@ public class CastManager extends BaseCastManager implements OnFailedListener {
throw new NoConnectionException();
}
Log.d(TAG, "remoteMediaPlayer.seek() to position " + position);
- remoteMediaPlayer.seek(mApiClient,
- position,
- RESUME_STATE_UNCHANGED).
- setResultCallback(result -> {
- if (!result.getStatus().isSuccess()) {
- onFailed(R.string.cast_failed_seek, result.getStatus().getStatusCode());
- }
- });
+ remoteMediaPlayer.seek(mApiClient, position, RESUME_STATE_UNCHANGED).setResultCallback(result -> {
+ if (!result.getStatus().isSuccess()) {
+ onFailed(R.string.cast_failed_seek, result.getStatus().getStatusCode());
+ }
+ });
}
/**
diff --git a/core/src/test/java/de/danoeh/antennapod/core/storage/ItemEnqueuePositionCalculatorTest.java b/core/src/test/java/de/danoeh/antennapod/core/storage/ItemEnqueuePositionCalculatorTest.java
index 17b88bdd2..275b104ea 100644
--- a/core/src/test/java/de/danoeh/antennapod/core/storage/ItemEnqueuePositionCalculatorTest.java
+++ b/core/src/test/java/de/danoeh/antennapod/core/storage/ItemEnqueuePositionCalculatorTest.java
@@ -226,9 +226,7 @@ public class ItemEnqueuePositionCalculatorTest {
private static FeedItem setAsDownloading(int id, DownloadStateProvider stubDownloadStateProvider,
boolean isDownloading) {
FeedItem item = createFeedItem(id);
- FeedMedia media =
- new FeedMedia(item, "http://download.url.net/" + id
- , 100000 + id, "audio/mp3");
+ FeedMedia media = new FeedMedia(item, "http://download.url.net/" + id, 100000 + id, "audio/mp3");
media.setId(item.getId());
item.setMedia(media);
return setAsDownloading(item, stubDownloadStateProvider, isDownloading);