Don't transition to three panel mode when just getting screenshots for the background

This commit is contained in:
Maurice Parker 2019-10-31 11:21:08 -05:00
parent 280f754217
commit 34d0142dbc
1 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,9 @@ class RootSplitViewController: UISplitViewController {
var coordinator: SceneCoordinator!
override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
self.coordinator.configureThreePanelMode(for: size)
if UIApplication.shared.applicationState != .background {
self.coordinator.configureThreePanelMode(for: size)
}
super.viewWillTransition(to: size, with: coordinator)
}