fix(android): check disableFocus when state is ready (#3494)

* fix: check disableFocus when state is ready

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

This reverts commit b616bc2b8165f49a60d2f4b061d5d9abce63bff6.

* refactor: makes keepScreenOn ignore disableFocus when start playback
This commit is contained in:
YangJH 2024-03-09 03:34:09 +09:00 committed by GitHub
parent 8f0fbd0ffc
commit 366c841c0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1014,10 +1014,8 @@ public class ReactExoplayerView extends FrameLayout implements
} else { } else {
initializePlayer(); initializePlayer();
} }
if (!disableFocus) {
setKeepScreenOn(preventsDisplaySleepDuringVideoPlayback); setKeepScreenOn(preventsDisplaySleepDuringVideoPlayback);
} }
}
private void pausePlayback() { private void pausePlayback() {
if (player != null) { if (player != null) {