Merge pull request #141 from jellyfin/create-pull-request/patch
[ci] SwiftLint
This commit is contained in:
commit
1e883b3c17
|
@ -88,7 +88,7 @@ class PlayerViewController: UIViewController, GCKDiscoveryManagerListener, GCKRe
|
||||||
var playbackItem = PlaybackItem()
|
var playbackItem = PlaybackItem()
|
||||||
var remoteTimeUpdateTimer: Timer?
|
var remoteTimeUpdateTimer: Timer?
|
||||||
var upNextViewModel: UpNextViewModel = UpNextViewModel()
|
var upNextViewModel: UpNextViewModel = UpNextViewModel()
|
||||||
var lastOri: UIInterfaceOrientation? = nil
|
var lastOri: UIInterfaceOrientation?
|
||||||
|
|
||||||
// MARK: IBActions
|
// MARK: IBActions
|
||||||
@IBAction func seekSliderStart(_ sender: Any) {
|
@IBAction func seekSliderStart(_ sender: Any) {
|
||||||
|
@ -418,7 +418,7 @@ class PlayerViewController: UIViewController, GCKDiscoveryManagerListener, GCKRe
|
||||||
self.lastOri = UIApplication.shared.windows.first?.windowScene?.interfaceOrientation ?? nil
|
self.lastOri = UIApplication.shared.windows.first?.windowScene?.interfaceOrientation ?? nil
|
||||||
AppDelegate.orientationLock = .landscape
|
AppDelegate.orientationLock = .landscape
|
||||||
|
|
||||||
if(self.lastOri != nil) {
|
if self.lastOri != nil {
|
||||||
if !self.lastOri!.isLandscape {
|
if !self.lastOri!.isLandscape {
|
||||||
UIDevice.current.setValue(UIInterfaceOrientation.landscapeRight.rawValue, forKey: "orientation")
|
UIDevice.current.setValue(UIInterfaceOrientation.landscapeRight.rawValue, forKey: "orientation")
|
||||||
UIViewController.attemptRotationToDeviceOrientation()
|
UIViewController.attemptRotationToDeviceOrientation()
|
||||||
|
@ -470,7 +470,7 @@ class PlayerViewController: UIViewController, GCKDiscoveryManagerListener, GCKRe
|
||||||
self.navigationController?.isNavigationBarHidden = false
|
self.navigationController?.isNavigationBarHidden = false
|
||||||
overrideUserInterfaceStyle = .unspecified
|
overrideUserInterfaceStyle = .unspecified
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
if(self.lastOri != nil) {
|
if self.lastOri != nil {
|
||||||
AppDelegate.orientationLock = .all
|
AppDelegate.orientationLock = .all
|
||||||
UIDevice.current.setValue(self.lastOri!.rawValue, forKey: "orientation")
|
UIDevice.current.setValue(self.lastOri!.rawValue, forKey: "orientation")
|
||||||
UIViewController.attemptRotationToDeviceOrientation()
|
UIViewController.attemptRotationToDeviceOrientation()
|
||||||
|
|
Loading…
Reference in New Issue