Skip to content

Commit 72dfe97

Browse files
authored
Merge pull request #7408 from Redirion/fixedautotransition2
Fixed Period Transition
2 parents 9e44053 + 3e099fb commit 72dfe97

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/player/Player.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2448,6 +2448,7 @@ public void onPositionDiscontinuity(
24482448
// Refresh the playback if there is a transition to the next video
24492449
final int newWindowIndex = simpleExoPlayer.getCurrentWindowIndex();
24502450
switch (discontinuityReason) {
2451+
case DISCONTINUITY_REASON_AUTO_TRANSITION:
24512452
case DISCONTINUITY_REASON_REMOVE:
24522453
// When player is in single repeat mode and a period transition occurs,
24532454
// we need to register a view count here since no metadata has changed
@@ -2470,7 +2471,6 @@ public void onPositionDiscontinuity(
24702471
}
24712472
break;
24722473
case DISCONTINUITY_REASON_SKIP:
2473-
case DISCONTINUITY_REASON_AUTO_TRANSITION:
24742474
break; // only makes Android Studio linter happy, as there are no ads
24752475
}
24762476

0 commit comments

Comments
 (0)