fullscreen media player restore tweak

This commit is contained in:
Akinwale Ariwodola 2020-01-09 18:56:36 +01:00
parent 6c55633751
commit 504baeefaf

View file

@ -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);
};