Skip to content

Commit

Permalink
fix(android): check disableFocus when state is ready (#3494)
Browse files Browse the repository at this point in the history
* fix: check disableFocus when state is ready

* Revert "fix: check disableFocus when state is ready"

This reverts commit b616bc2.

* refactor: makes keepScreenOn ignore disableFocus when start playback
  • Loading branch information
YangJonghun authored Mar 8, 2024
1 parent 8f0fbd0 commit 366c841
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1014,9 +1014,7 @@ private void startPlayback() {
} else {
initializePlayer();
}
if (!disableFocus) {
setKeepScreenOn(preventsDisplaySleepDuringVideoPlayback);
}
setKeepScreenOn(preventsDisplaySleepDuringVideoPlayback);
}

private void pausePlayback() {
Expand Down

0 comments on commit 366c841

Please sign in to comment.