improv: statusbar must be shown when not fullscreen

This commit is contained in:
NoCrypt 2024-07-26 00:41:42 +07:00
parent 52a131bdde
commit af252401ed
2 changed files with 3 additions and 1 deletions

View file

@ -84,7 +84,7 @@ async function updateInsets () {
}
updateInsets()
StatusBar.hide()
//StatusBar.hide()
StatusBar.setStyle({ style: Style.Dark })
StatusBar.setOverlaysWebView({ overlay: true })

View file

@ -106,8 +106,10 @@
document.addEventListener('fullscreenchange', () => {
isFullscreen = !!document.fullscreenElement
if (document.fullscreenElement) {
window.Capacitor.Plugins.StatusBar.hide()
screen.orientation.lock('landscape')
} else {
window.Capacitor.Plugins.StatusBar.show()
screen.orientation.unlock()
}
})