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:
parent
d26ca194b3
commit
31ea44ccf1
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user