Skip to content

Commit 608e73e

Browse files
committed
Set workaround for playback position reset when switching to main player with content thumbnail
The workaround set before was not applied when switching to main player with content thumbnail from popup or background player. This commit fixes this by applying the workaround when switching to main player with content thumbnail from popup or background player.
1 parent 2e538b8 commit 608e73e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,10 @@ public void onClick(final View v) {
500500
break;
501501
case R.id.detail_thumbnail_root_layout:
502502
autoPlayEnabled = true; // forcefully start playing
503+
// FIXME Workaround #7427
504+
if (isPlayerAvailable()) {
505+
player.setRecovery();
506+
}
503507
openVideoPlayerAutoFullscreen();
504508
break;
505509
case R.id.detail_title_root_layout:

0 commit comments

Comments
 (0)