mirror of
https://github.com/NoCrypt/migu.git
synced 2026-04-20 16:12:31 +00:00
improv: statusbar must be shown when not fullscreen
This commit is contained in:
parent
52a131bdde
commit
af252401ed
2 changed files with 3 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ async function updateInsets () {
|
|||
}
|
||||
updateInsets()
|
||||
|
||||
StatusBar.hide()
|
||||
//StatusBar.hide()
|
||||
StatusBar.setStyle({ style: Style.Dark })
|
||||
StatusBar.setOverlaysWebView({ overlay: true })
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue