Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix #867: Status bar placement in Settings on iPhones in landscape. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
boska authored and iccub committed Aug 5, 2019
1 parent c0aa10c commit e44e121
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Client/Application/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,14 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UIViewControllerRestorati
self.browserViewController.handleNavigationPath(path: routerpath)
return true
}

func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
if let presentedViewController = rootViewController.presentedViewController {
return presentedViewController.supportedInterfaceOrientations
} else {
return rootViewController.supportedInterfaceOrientations
}
}

// We sync in the foreground only, to avoid the possibility of runaway resource usage.
// Eventually we'll sync in response to notifications.
Expand Down

0 comments on commit e44e121

Please # to comment.