From 504baeefafa2db8d5213350b238f60157fed18da Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Thu, 9 Jan 2020 18:56:36 +0100 Subject: [PATCH] fullscreen media player restore tweak --- src/page/file/view.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/page/file/view.js b/src/page/file/view.js index c682785..7a17ca1 100644 --- a/src/page/file/view.js +++ b/src/page/file/view.js @@ -299,8 +299,6 @@ class FilePage extends React.PureComponent { handleFullscreenToggle = isFullscreen => { const { toggleFullscreenMode } = this.props; - this.setState({ fullscreenMode: isFullscreen }); - toggleFullscreenMode(isFullscreen); if (isFullscreen) { @@ -317,6 +315,7 @@ class FilePage extends React.PureComponent { NativeModules.UtilityModule.showNavigationBar(); } + this.setState({ fullscreenMode: isFullscreen }); StatusBar.setHidden(isFullscreen); };