Skip to content

Commit

Permalink
Fixed player not automatically playing
Browse files Browse the repository at this point in the history
Should also fix TeamNewPipe#6179
  • Loading branch information
litetex committed May 11, 2021
1 parent d26ca19 commit 0cb27e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/src/main/java/org/schabi/newpipe/player/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,11 @@ && isPlaybackResumeEnabled(this)
// Android TV: without it focus will frame the whole player
binding.playPauseButton.requestFocus();

playPause();
if (getPlayWhenReady()) {
play();
} else {
pause();
}
}
NavigationHelper.sendPlayerStartedEvent(context);
}
Expand Down

0 comments on commit 0cb27e4

Please sign in to comment.