Fixed status bar vanishing after web view media playback

This commit is contained in:
Ilya Laktyushin 2019-02-09 00:06:58 +04:00
parent 06a15ce5a3
commit d88f0bcbe8

View File

@ -1065,6 +1065,12 @@ private final class SharedApplicationContext {
BITHockeyManager.shared().start()
BITHockeyManager.shared().authenticator.authenticateInstallation()
}
NotificationCenter.default.addObserver(forName: NSNotification.Name.UIWindowDidBecomeHidden, object: nil, queue: nil, using: { notification in
if UIApplication.shared.isStatusBarHidden {
UIApplication.shared.setStatusBarHidden(false, with: .none)
}
})
return true
}