#3383 Fix skip last episode in queue - the fix
This commit is contained in:
parent
11270d91a6
commit
cf5f0fbc28
@ -304,7 +304,7 @@ public class PlaybackTest {
|
||||
|
||||
@Test
|
||||
public void testSmartMarkAsPlayed_Skip_LastEpisodeInQueue() throws Exception {
|
||||
// TODO: The test fails for now: doTestSmartMarkAsPlayed_Skip_ForEpisode(-1);
|
||||
doTestSmartMarkAsPlayed_Skip_ForEpisode(-1);
|
||||
}
|
||||
|
||||
private void doTestSmartMarkAsPlayed_Skip_ForEpisode(int itemIdxNegAllowed) throws Exception {
|
||||
|
@ -969,7 +969,7 @@ public class PlaybackService extends MediaBrowserServiceCompat {
|
||||
}
|
||||
FeedMedia media = (FeedMedia) playable;
|
||||
FeedItem item = media.getItem();
|
||||
boolean smartMarkAsPlayed = playingNext && media.hasAlmostEnded();
|
||||
boolean smartMarkAsPlayed = media.hasAlmostEnded();
|
||||
if (!ended && smartMarkAsPlayed) {
|
||||
Log.d(TAG, "smart mark as played");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user