diff options
author | ByteHamster <info@bytehamster.com> | 2021-02-15 21:56:03 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2021-02-15 21:56:06 +0100 |
commit | 339aa936bf53e96236dba12b0d356f196e04813c (patch) | |
tree | 03d3b7b1f05c4bb96ede7e4d45a6224a75bc2d81 /app/src/androidTest | |
parent | c0d3a6e3be545e4719ce23b15f9612b66fd8040b (diff) | |
download | AntennaPod-339aa936bf53e96236dba12b0d356f196e04813c.zip |
Removed return parameter of loadMediaInfo
We return true anyways. The call for actually loading is asynchronous,
so returning anything here does not make sense.
Reduces likelihood of loader being interrupted to just load the same
item again when the state changes.
Diffstat (limited to 'app/src/androidTest')
-rw-r--r-- | app/src/androidTest/java/de/test/antennapod/playback/PlaybackTest.java | 7 | ||||
-rw-r--r-- | app/src/androidTest/java/de/test/antennapod/ui/SpeedChangeTest.java | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/app/src/androidTest/java/de/test/antennapod/playback/PlaybackTest.java b/app/src/androidTest/java/de/test/antennapod/playback/PlaybackTest.java index f3bd61839..e16451763 100644 --- a/app/src/androidTest/java/de/test/antennapod/playback/PlaybackTest.java +++ b/app/src/androidTest/java/de/test/antennapod/playback/PlaybackTest.java @@ -108,7 +108,12 @@ public class PlaybackTest { } private void setupPlaybackController() { - controller = new PlaybackController(activityTestRule.getActivity()); + controller = new PlaybackController(activityTestRule.getActivity()) { + @Override + public void loadMediaInfo() { + // Do nothing + } + }; controller.init(); } diff --git a/app/src/androidTest/java/de/test/antennapod/ui/SpeedChangeTest.java b/app/src/androidTest/java/de/test/antennapod/ui/SpeedChangeTest.java index 739efcfd2..8027b7dc2 100644 --- a/app/src/androidTest/java/de/test/antennapod/ui/SpeedChangeTest.java +++ b/app/src/androidTest/java/de/test/antennapod/ui/SpeedChangeTest.java @@ -73,7 +73,12 @@ public class SpeedChangeTest { EspressoTestUtils.tryKillPlaybackService(); activityRule.launchActivity(new Intent().putExtra(MainActivityStarter.EXTRA_OPEN_PLAYER, true)); - controller = new PlaybackController(activityRule.getActivity()); + controller = new PlaybackController(activityRule.getActivity()) { + @Override + public void loadMediaInfo() { + // Do nothing + } + }; controller.init(); controller.getMedia(); // To load media } |