From 366c841c0b960fd461ae7dcfdcb76a928fadf2b8 Mon Sep 17 00:00:00 2001 From: YangJH Date: Sat, 9 Mar 2024 03:34:09 +0900 Subject: [PATCH] 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 --- .../java/com/brentvatne/exoplayer/ReactExoplayerView.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java b/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java index 3d21381f..d67493c0 100644 --- a/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java +++ b/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java @@ -1014,9 +1014,7 @@ public class ReactExoplayerView extends FrameLayout implements } else { initializePlayer(); } - if (!disableFocus) { - setKeepScreenOn(preventsDisplaySleepDuringVideoPlayback); - } + setKeepScreenOn(preventsDisplaySleepDuringVideoPlayback); } private void pausePlayback() {