Reenable background iOS screenshooting

This commit is contained in:
Maurice Parker 2019-09-30 14:04:18 -05:00
parent 2c3f665b58
commit ed2257a4f4
2 changed files with 2 additions and 4 deletions

View File

@ -15,9 +15,7 @@ class RootSplitViewController: UISplitViewController {
override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) { override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
coordinator.animate(alongsideTransition: { [weak self] context in coordinator.animate(alongsideTransition: { [weak self] context in
if UIApplication.shared.applicationState != .background { self?.coordinator.configureThreePanelMode(for: size)
self?.coordinator.configureThreePanelMode(for: size)
}
}) })
} }

View File

@ -910,7 +910,7 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
extension SceneCoordinator: UISplitViewControllerDelegate { extension SceneCoordinator: UISplitViewControllerDelegate {
func splitViewController(_ splitViewController: UISplitViewController, collapseSecondary secondaryViewController:UIViewController, onto primaryViewController:UIViewController) -> Bool { func splitViewController(_ splitViewController: UISplitViewController, collapseSecondary secondaryViewController:UIViewController, onto primaryViewController:UIViewController) -> Bool {
return masterTimelineViewController == nil return currentArticle == nil
} }
} }