Github user jcesarmobile commented on the issue:

    https://github.com/apache/cordova-plugin-statusbar/pull/88
  
    Thanks for the PR and sorry for not spotting it before.
    
    Instead of creating a new variable `_hideCalledFromExternal`you could have 
used  `_statusBarVisible` as it has the same value.
    
    I don't think hiding the statusbar on iPhone X when in landscape is the 
right approach here as it looks like a bug to me, it should respect the value 
on `prefersStatusBarHidden`, iPhone X is the only one ignoring that value, so I 
think that might change in a future version. My approach uses current status 
bar size for the bar, as right now iPhone X doesn't have the status bar in 
landscape, has height 0 and the fake view it's not shown neither, but if that 
changes in the future and iPhone X starts respecting `prefersStatusBarHidden` 
value my approach will continue working, while yours will always hide the 
status bar.
    
    Also your approach doesn't work fine when running in iPhones different from 
iPhone X and you call show when the in-call/hot-spot status bar is present and 
after that you rotate, the background view will remain with 40pt when rotated 
to landscape instead of resizing to 20pt (current size as  in-call/hot-spot 
status bar is 20pt in landscape).
    
    So, for now I'll keep my approach, but I'm still waiting for review from 
other users. So, please, can you give it a try?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to