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,9 +1014,7 @@ public class ReactExoplayerView extends FrameLayout implements
} else {
initializePlayer();
}
if (!disableFocus) {
setKeepScreenOn(preventsDisplaySleepDuringVideoPlayback);
}
setKeepScreenOn(preventsDisplaySleepDuringVideoPlayback);
}
private void pausePlayback() {