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:
parent
8f0fbd0ffc
commit
366c841c0b
@ -1014,9 +1014,7 @@ public class ReactExoplayerView extends FrameLayout implements
|
|||||||
} else {
|
} else {
|
||||||
initializePlayer();
|
initializePlayer();
|
||||||
}
|
}
|
||||||
if (!disableFocus) {
|
setKeepScreenOn(preventsDisplaySleepDuringVideoPlayback);
|
||||||
setKeepScreenOn(preventsDisplaySleepDuringVideoPlayback);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void pausePlayback() {
|
private void pausePlayback() {
|
||||||
|
Loading…
Reference in New Issue
Block a user