Skip to content

Commit

Permalink
fix: Further post-rebase fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelketek committed Dec 19, 2023
1 parent 3d2e2fd commit b7c3d1a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
12 changes: 0 additions & 12 deletions OpenEdX/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
sourceApplication: options[UIApplication.OpenURLOptionsKey.sourceApplication] as? String
)
}
return true
}

func application(
_ application: UIApplication,
supportedInterfaceOrientationsFor window: UIWindow?
) -> UIInterfaceOrientationMask {
//Allows external windows, such as WebView Player, to work in any orientation
if window == self.window {
return UIDevice.current.userInterfaceIdiom == .phone ? orientationLock : .all
} else {
return UIDevice.current.userInterfaceIdiom == .phone ? .allButUpsideDown : .all
}

return false
Expand Down
1 change: 0 additions & 1 deletion OpenEdX/DI/ScreenAssembly.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ class ScreenAssembly: Assembly {
router: r.resolve(AuthorizationRouter.self)!,
config: r.resolve(ConfigProtocol.self)!,
analytics: r.resolve(AuthorizationAnalytics.self)!,
config: r.resolve(Config.self)!,
validator: r.resolve(Validator.self)!
)
}
Expand Down
5 changes: 4 additions & 1 deletion OpenEdX/Router.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ public class Router: AuthorizationRouter,
let controller = UIHostingController(rootView: view)
navigationController.setViewControllers([controller], animated: true)
} else {
let view = SignInView(viewModel: Container.shared.resolve(SignInViewModel.self)!)
let view = SignInView(
viewModel: Container.shared.resolve(SignInViewModel.self)!,
navigationController: navigationController
)
let controller = UIHostingController(rootView: view)
navigationController.setViewControllers([controller], animated: false)
}
Expand Down

0 comments on commit b7c3d1a

Please sign in to comment.