1
0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2024-11-25 12:32:31 +01:00

Fixed player not automatically playing (#6266)

* Fixed player not automatically playing

Should also fix https://github.com/TeamNewPipe/NewPipe/issues/6179

* Added comment
This commit is contained in:
litetex 2021-05-12 10:20:39 +02:00 committed by GitHub
parent d26ca194b3
commit 31ea44ccf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -714,7 +714,12 @@ public final class Player implements
// Android TV: without it focus will frame the whole player // Android TV: without it focus will frame the whole player
binding.playPauseButton.requestFocus(); binding.playPauseButton.requestFocus();
playPause(); // Note: This is for automatically playing (when "Resume playback" is off), see #6179
if (getPlayWhenReady()) {
play();
} else {
pause();
}
} }
NavigationHelper.sendPlayerStartedEvent(context); NavigationHelper.sendPlayerStartedEvent(context);
} }